summaryrefslogtreecommitdiff
path: root/tests/mv
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/mv
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/mv')
-rwxr-xr-xtests/mv/part-symlink12
-rwxr-xr-xtests/mv/sticky-to-xpart4
2 files changed, 8 insertions, 8 deletions
diff --git a/tests/mv/part-symlink b/tests/mv/part-symlink
index 2e7cf1b8b..e57de3c96 100755
--- a/tests/mv/part-symlink
+++ b/tests/mv/part-symlink
@@ -96,18 +96,18 @@ for copy in cp mv; do
}
# Strip off all but the file names.
# Remove any site-dependent part of each file name.
- ls=`ls -gG --ignore=.err . \
- | sed \
+ ls=$(ls -gG --ignore=.err . \
+ | sed \
-e '/^total /d' \
-e "s,$other_partition_tmpdir/,," \
-e "s,$pwd_tmp/,," \
- -e 's/^[^ ]* *[^ ]* *[^ ]* *[^ ]* *[^ ]* *[^ ]* *//'`
- ls2=`cd "$other_partition_tmpdir" && ls -gG --ignore=.err . \
- | sed \
+ -e 's/^[^ ]* *[^ ]* *[^ ]* *[^ ]* *[^ ]* *[^ ]* *//')
+ ls2=$(cd "$other_partition_tmpdir" && ls -gG --ignore=.err . \
+ | sed \
-e '/^total /d' \
-e "s,$other_partition_tmpdir/,," \
-e "s,$pwd_tmp/,," \
- -e 's/^[^ ]* *[^ ]* *[^ ]* *[^ ]* *[^ ]* *[^ ]* *//'`
+ -e 's/^[^ ]* *[^ ]* *[^ ]* *[^ ]* *[^ ]* *[^ ]* *//')
echo " ("$ls") ("$ls2")"
# If the command failed, then it must not have changed the files.
diff --git a/tests/mv/sticky-to-xpart b/tests/mv/sticky-to-xpart
index 954cb8f0e..6df65024e 100755
--- a/tests/mv/sticky-to-xpart
+++ b/tests/mv/sticky-to-xpart
@@ -41,10 +41,10 @@ chmod go+x . || framework_failure_
# Ensure that $NON_ROOT_USERNAME can access the required version of mv.
-version=`
+version=$(
setuidgid $NON_ROOT_USERNAME env PATH="$PATH" mv --version |
sed -n '1s/.* //p'
-`
+)
case $version in
$PACKAGE_VERSION) ;;
*) skip_ "cannot access just-built mv as user $NON_ROOT_USERNAME";;