diff options
author | Peter Stephenson <pws@zsh.org> | 2017-01-30 10:31:11 +0000 |
---|---|---|
committer | Peter Stephenson <pws@zsh.org> | 2017-01-30 10:31:11 +0000 |
commit | ed855baf482240e0f090b22e06b0f6b8b38c05ea (patch) | |
tree | 9cadb63ca745fc5f5672b08bfdb75b7e2cc13dea /Test/C04funcdef.ztst | |
parent | b0073410eb9b4694260d63cb61f67056f487a546 (diff) | |
download | zsh-ed855baf482240e0f090b22e06b0f6b8b38c05ea.tar.gz zsh-ed855baf482240e0f090b22e06b0f6b8b38c05ea.tar.xz zsh-ed855baf482240e0f090b22e06b0f6b8b38c05ea.zip |
40465: update methods to output $PWD in tests.
Use method from B01cd.tst which resolves symbolic links and matches against parameter in output.
Diffstat (limited to 'Test/C04funcdef.ztst')
-rw-r--r-- | Test/C04funcdef.ztst | 10 |
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=(.) |