diff options
Diffstat (limited to 'tests/ln')
-rwxr-xr-x | tests/ln/hard-to-sym | 10 | ||||
-rwxr-xr-x | tests/ln/misc | 2 | ||||
-rwxr-xr-x | tests/ln/sf-1 | 2 |
3 files changed, 7 insertions, 7 deletions
diff --git a/tests/ln/hard-to-sym b/tests/ln/hard-to-sym index 044b10c0d..358b93008 100755 --- a/tests/ln/hard-to-sym +++ b/tests/ln/hard-to-sym @@ -30,7 +30,7 @@ ln -s -L -P symlink2 symlink3 || fail=1 # =================================================== # ensure that -L follows symlinks, and overrides -P ln -P -L symlink3 hard-to-a || fail=1 -ls=`ls -lG hard-to-a`x +ls=$(ls -lG hard-to-a)x case "$ls" in *'hard-to-ax') ;; *'hard-to-a -> '*x) fail=1 ;; @@ -40,7 +40,7 @@ esac # =================================================== # ensure that -P links (or at least duplicates) symlinks, and overrides -L ln -L -P symlink3 hard-to-3 || fail=1 -ls=`ls -lG hard-to-3`x +ls=$(ls -lG hard-to-3)x case "$ls" in *'hard-to-3 -> symlink2x') ;; *'hard-to-3x') fail=1 ;; @@ -52,7 +52,7 @@ esac # Create a hard link to a dangling symlink. ln -s /no-such-dir || framework_failure_ ln -L no-such-dir hard-to-dangle 2>err && fail=1 -case `cat err` in +case $(cat err) in *" accessing 'no-such-dir'":*) ;; *) fail=1 ;; esac @@ -63,12 +63,12 @@ ln -P no-such-dir hard-to-dangle || fail=1 mkdir d || framework_failure_ ln -s d link-to-dir || framework_failure_ ln -L link-to-dir hard-to-dir-link 2>err && fail=1 -case `cat err` in +case $(cat err) in *": 'link-to-dir': hard link not allowed for directory"*) ;; *) fail=1 ;; esac ln -P link-to-dir/ hard-to-dir-link 2>err && fail=1 -case `cat err` in +case $(cat err) in *": 'link-to-dir/': hard link not allowed for directory"*) ;; *) fail=1 ;; esac diff --git a/tests/ln/misc b/tests/ln/misc index 09baa2645..4da0eda45 100755 --- a/tests/ln/misc +++ b/tests/ln/misc @@ -91,7 +91,7 @@ rm -rf $d $f $ld || framework_failure_ touch $f || framework_failure_ mkdir $d || framework_failure_ ln -s $d $ld -af=`pwd`/$f +af=$(pwd)/$f ln --no-dereference -fs "$af" $ld || fail=1 test -f $ld || fail=1 rm -rf $d $f $ld diff --git a/tests/ln/sf-1 b/tests/ln/sf-1 index e7b680b5d..824c22432 100755 --- a/tests/ln/sf-1 +++ b/tests/ln/sf-1 @@ -23,7 +23,7 @@ echo foo > a || framework_failure_ ln -s . b || framework_failure_ ln -sf a b > err 2>&1 && fail=1 -case `cat err` in +case $(cat err) in *'are the same file') ;; *) fail=1 ;; esac |