5993c22475a2577ffd6308e50455bcc84fb93f69 blob 741 bytes (raw)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
| | %prep
mkdir whence.tmp
ln -s . whence.tmp/cwd
# cd through the symlink in order to test the case that ${prefix} and
# ${prefix:P} are different
pushd whence.tmp/cwd
ln -s real step3
ln -s step3 step2
ln -s step2 step1
ln -s loop loop
ln -s flip flop
ln -s flop flip
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:P}/step1 -> ${prefix:P}/step2 -> ${prefix:P}/step3 -> ${prefix:P}/real
>${prefix:P}/step1 -> ${prefix:P}/real
(
path=( $PWD/whence.tmp $path )
whence -S flip || whence -S loop || whence -s flip || whence -s loop
)
1:whence deals with symlink loops gracefully
|
debug log:
solving 5993c2247 ...
found 5993c2247 in https://inbox.vuxu.org/zsh-workers/20200326220250.11861abd@tarpaulin.shahaf.local2/
found ea0a4dae5 in https://git.vuxu.org/mirror/zsh/
preparing index
index prepared:
100644 ea0a4dae59679903768f08d0db4dab7b552e0d51 Test/B13whence.ztst
applying [1/1] https://inbox.vuxu.org/zsh-workers/20200326220250.11861abd@tarpaulin.shahaf.local2/
diff --git a/Test/B13whence.ztst b/Test/B13whence.ztst
index ea0a4dae5..5993c2247 100644
Checking patch Test/B13whence.ztst...
Applied patch Test/B13whence.ztst cleanly.
index at:
100644 5993c22475a2577ffd6308e50455bcc84fb93f69 Test/B13whence.ztst
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).