summaryrefslogtreecommitdiff
path: root/tests/cp
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2012-04-03 21:42:48 +0200
committerJim Meyering <meyering@redhat.com>2012-04-04 12:22:24 +0200
commit33230a19ca27d99629a7c8000f56ecce22e956fa (patch)
treea63b2a76eee78589504868d5fa569776a7518ece /tests/cp
parentb1e9cb9cd2945832b914922fa43808d6f467ba19 (diff)
downloadcoreutils-33230a19ca27d99629a7c8000f56ecce22e956fa.tar.xz
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.
Diffstat (limited to 'tests/cp')
-rwxr-xr-xtests/cp/perm8
-rwxr-xr-xtests/cp/preserve-gid12
-rwxr-xr-xtests/cp/same-file6
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.