diff options
Diffstat (limited to 'tests/cp')
-rwxr-xr-x | tests/cp/perm | 8 | ||||
-rwxr-xr-x | tests/cp/preserve-gid | 12 | ||||
-rwxr-xr-x | tests/cp/same-file | 6 |
3 files changed, 13 insertions, 13 deletions
diff --git a/tests/cp/perm b/tests/cp/perm index eb3925da2..a93df7182 100755 --- a/tests/cp/perm +++ b/tests/cp/perm @@ -55,13 +55,13 @@ for u in 31 37 2; do ;; cp:*:no) test $u = 37 && - expected_perms=` + expected_perms=$( echo $expected_perms | sed 's/.....$/-----/' - ` + ) test $u = 31 && - expected_perms=` + expected_perms=$( echo $expected_perms | sed 's/..\(..\).$/--\1-/' - ` + ) ;; esac test _$actual_perms = _$expected_perms || exit 1 diff --git a/tests/cp/preserve-gid b/tests/cp/preserve-gid index 6f371c3fb..746c57a60 100755 --- a/tests/cp/preserve-gid +++ b/tests/cp/preserve-gid @@ -52,24 +52,24 @@ t0() { fi } -nameless_uid=`$PERL -le ' +nameless_uid=$($PERL -le ' foreach my $i (1000..16*1024-1) { getpwuid $i or (print $i), exit } -'` -nameless_gid1=`$PERL -le ' +') +nameless_gid1=$($PERL -le ' foreach my $i (1000..16*1024) { getgrgid $i or (print $i), exit } -'` -nameless_gid2=`$PERL -le ' +') +nameless_gid2=$($PERL -le ' foreach my $i ('"$nameless_gid1"'+1..16*1024) { getgrgid $i or (print $i), exit } -'` +') if test -z "$nameless_uid" \ || test -z "$nameless_gid1" \ diff --git a/tests/cp/same-file b/tests/cp/same-file index dbd4d01b6..2ca7bf6ba 100755 --- a/tests/cp/same-file +++ b/tests/cp/same-file @@ -102,10 +102,10 @@ for args in 'foo symlink' 'symlink foo' 'foo foo' 'sl1 sl2' 'foo hardlink'; do ' _err fi # Strip off all but the file names. - ls=`ls -gG --ignore=_err . \ - | sed \ + ls=$(ls -gG --ignore=_err . \ + | sed \ -e '/^total /d' \ - -e 's/^[^ ]* *[^ ]* *[^ ]* *[^ ]* *[^ ]* *[^ ]* *//'` + -e 's/^[^ ]* *[^ ]* *[^ ]* *[^ ]* *[^ ]* *[^ ]* *//') echo "($ls)" # Make sure the original is unchanged and that # the destination is a copy. |