summaryrefslogtreecommitdiff
path: root/trip.rc
diff options
context:
space:
mode:
authorToby Goodwin <toby@paccrat.org>2017-08-25 20:36:45 +0100
committerToby Goodwin <toby@paccrat.org>2017-08-25 20:36:45 +0100
commit1952b154af8f2afedbdb4b58bd1c6d9099b39973 (patch)
tree3d451458ef1f96e3e503c55981e7d06ef3517203 /trip.rc
parente42c481a6dd6d5b7977fcd7221267cceeeefbb86 (diff)
use "/bin/pwd -P" - github #36
Diffstat (limited to 'trip.rc')
-rw-r--r--trip.rc8
1 files changed, 4 insertions, 4 deletions
diff --git a/trip.rc b/trip.rc
index 0d65044..1189fb9 100644
--- a/trip.rc
+++ b/trip.rc
@@ -244,17 +244,17 @@ if (~ `{echo -n} ?)
if (!~ `` '' {echo --} $nl)
fail echo --
-pwd=`/bin/pwd cdpath=/ { # some local assignments
+pwd=`{/bin/pwd -P} cdpath=/ { # some local assignments
home=/tmp cd
- if (!~ `/bin/pwd `{sh -c 'cd /tmp; /bin/pwd'})
+ if (!~ `{/bin/pwd -P} `{sh -c 'cd /tmp; /bin/pwd -P'})
fail could not cd to '$home'
cdpath=/ cd tmp
- if (!~ `/bin/pwd `{sh -c 'cd /tmp; /bin/pwd'})
+ if (!~ `{/bin/pwd -P} `{sh -c 'cd /tmp; /bin/pwd -P'})
fail could not cd to /tmp
cd $pwd
- if (!~ `/bin/pwd `{sh -c 'cd $pwd; /bin/pwd'})
+ if (!~ `{/bin/pwd -P} `{sh -c 'cd $pwd; /bin/pwd -P'})
fail could not cd to current directory!
}