From a874d8fae19a04b2f562655d4e9ead127c5c2540 Mon Sep 17 00:00:00 2001 From: Henry Weller Date: Sat, 3 Sep 2016 15:59:49 +0100 Subject: [PATCH] OpenFOAM-dev/etc/bashrc: Use 'pwd -P' to handle relative paths and links Resolves bug-report http://bugs.openfoam.org/view.php?id=2223 --- etc/bashrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etc/bashrc b/etc/bashrc index a4a01ef64..88fb83ebd 100644 --- a/etc/bashrc +++ b/etc/bashrc @@ -43,7 +43,7 @@ export WM_PROJECT_VERSION=4.x # Please set to the appropriate path if the default is not correct. # [ $BASH_SOURCE ] && \ -export FOAM_INST_DIR=${BASH_SOURCE%/*/*/*} || \ +export FOAM_INST_DIR=$(cd ${BASH_SOURCE%/*/*/*} && pwd -P) || \ export FOAM_INST_DIR=$HOME/$WM_PROJECT # export FOAM_INST_DIR=~$WM_PROJECT # export FOAM_INST_DIR=/opt/$WM_PROJECT