about summary refs log tree commit diff
path: root/Test/B13whence.ztst
blob: b2236398032fd400e6ceed6b58ec178f1eb78ab0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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