From ed855baf482240e0f090b22e06b0f6b8b38c05ea Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Mon, 30 Jan 2017 10:31:11 +0000 Subject: 40465: update methods to output $PWD in tests. Use method from B01cd.tst which resolves symbolic links and matches against parameter in output. --- Test/C04funcdef.ztst | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'Test/C04funcdef.ztst') 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=(.) -- cgit 1.4.1