diff options
author | Daniel Shahaf <d.s@daniel.shahaf.name> | 2020-03-21 19:04:09 +0000 |
---|---|---|
committer | Daniel Shahaf <d.s@daniel.shahaf.name> | 2020-03-25 23:49:02 +0000 |
commit | db8d16a060b76b6382daa4365d2d2ad5902cc735 (patch) | |
tree | 09272abf31f9a67eec47487bc952cfd8a8b27cb8 /Test | |
parent | 47fc5fe01fa315c38335739beb6102e103a80702 (diff) | |
download | zsh-db8d16a060b76b6382daa4365d2d2ad5902cc735.tar.gz zsh-db8d16a060b76b6382daa4365d2d2ad5902cc735.tar.xz zsh-db8d16a060b76b6382daa4365d2d2ad5902cc735.zip |
45583/0005: Add a test for bin_whence's symlinks resolution.
Diffstat (limited to 'Test')
-rw-r--r-- | Test/B13whence.ztst | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/Test/B13whence.ztst b/Test/B13whence.ztst new file mode 100644 index 000000000..b22363980 --- /dev/null +++ b/Test/B13whence.ztst @@ -0,0 +1,22 @@ +%prep + + mkdir whence.tmp + pushd whence.tmp + ln -s real step3 + ln -s step3 step2 + ln -s step2 step1 + touch real + chmod +x real + prefix=$PWD + popd + +%test + + ( + path=( $PWD/whence.tmp $path ) + whence -S step1 + whence -s step1 + ) +0q:whence symlink resolution +>$prefix/step1 -> $prefix/step2 -> $prefix/step3 -> $prefix/real +>$prefix/step1 -> $prefix/real |