diff options
Diffstat (limited to 'tests/ln/hard-to-sym')
-rwxr-xr-x | tests/ln/hard-to-sym | 10 |
1 files changed, 5 insertions, 5 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 |