diff options
Diffstat (limited to 'bin/fdpsh')
-rwxr-xr-x | bin/fdpsh | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -14,9 +14,11 @@ ME=`basename $0` FDPBINDIR=`dirname $0` USAGE="usage: ${ME} [-c cmd] [file [arg..]]" # -PATH=${FDPBINDIR}:${PATH} export PATH -FDPDIR=${FDPBINDIR}/../.. export FDPDIR -SHELL=${FDPBINDIR}/${ME} export SHELL +PATH=${FDPBINDIR}:${PATH} export PATH +# This change keeps pathnames from growing out of control +FDPDIR=$(pushd ${FDPBINDIR}/../.. 2>&1 >/dev/null \ + && pwd && popd 2>&1 >/dev/null) export FDPDIR +SHELL=${FDPBINDIR}/${ME} export SHELL # FDPLOG=/tmp/fdpsh.log # |