From 33230a19ca27d99629a7c8000f56ecce22e956fa Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Tue, 3 Apr 2012 21:42:48 +0200 Subject: tests: remove nearly all remaining backticks * tests/rm/isatty: Remove now-unneeded "# `" line. * tests/misc/ls-time: Likewise. * tests/misc/date-sec: Remove stray "`" in comment. * tests/du/long-sloop: Likewise. * tests/mv/part-symlink: Replace multi-line `...` by $(...). * tests/mv/sticky-to-xpart: Likewise. * tests/rm/fail-2eperm: Likewise. * tests/ls/nameless-uid: Likewise. * tests/cp/perm: Likewise. * tests/cp/preserve-gid: Likewise. * tests/cp/same-file: Likewise. --- tests/cp/perm | 8 ++++---- tests/cp/preserve-gid | 12 ++++++------ tests/cp/same-file | 6 +++--- 3 files changed, 13 insertions(+), 13 deletions(-) (limited to 'tests/cp') 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. -- cgit v1.2.3-54-g00ecf