summaryrefslogtreecommitdiffstats
path: root/Test/C04funcdef.ztst
diff options
context:
space:
mode:
Diffstat (limited to 'Test/C04funcdef.ztst')
-rw-r--r--Test/C04funcdef.ztst10
1 files changed, 7 insertions, 3 deletions
diff --git a/Test/C04funcdef.ztst b/Test/C04funcdef.ztst
index 176841dd2..0cf2b58b9 100644
--- a/Test/C04funcdef.ztst
+++ b/Test/C04funcdef.ztst
@@ -2,6 +2,10 @@
mkdir funcdef.tmp
cd funcdef.tmp
+ setopt chaselinks
+ cd .
+ unsetopt chaselinks
+ mydir=$PWD
%test
@@ -325,10 +329,10 @@
printf '%s\n' 'oops(){}' 'ninjas-earring(){}' 'oops "$@"' >oops
autoload oops
oops
- whence -v oops | sed -e "s%$PWD%CURDIR%"
+ whence -v oops
)
-0:whence -v of zsh-style autoload
->oops is a shell function from CURDIR/oops
+0q:whence -v of zsh-style autoload
+>oops is a shell function from $mydir/oops
(
fpath=(.)