summaryrefslogtreecommitdiffstats
path: root/bin/fdpsh
diff options
context:
space:
mode:
Diffstat (limited to 'bin/fdpsh')
-rwxr-xr-xbin/fdpsh8
1 files changed, 5 insertions, 3 deletions
diff --git a/bin/fdpsh b/bin/fdpsh
index f4baef2..71b3544 100755
--- a/bin/fdpsh
+++ b/bin/fdpsh
@@ -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
#