BUG: etc/bashrc - use \cd to avoid problem when cd is aliased. Fixes #280

This commit is contained in:
Andrew Heather 2016-10-28 14:55:46 +01:00
parent a4ac4ac268
commit a224366c28

View File

@ -43,7 +43,7 @@ export WM_PROJECT_VERSION=plus
# Please set to the appropriate path if the default is not correct.
#
[ $BASH_SOURCE ] && \
export FOAM_INST_DIR=$(cd ${BASH_SOURCE%/*/*/*} && pwd -P) || \
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