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/rm/fail-2eperm | 4 ++-- tests/rm/isatty | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) (limited to 'tests/rm') diff --git a/tests/rm/fail-2eperm b/tests/rm/fail-2eperm index 9162892ee..fa2f43227 100755 --- a/tests/rm/fail-2eperm +++ b/tests/rm/fail-2eperm @@ -31,10 +31,10 @@ touch a/b || framework_failure_ # Try to ensure that $NON_ROOT_USERNAME can access # the required version of rm. -rm_version=` +rm_version=$( setuidgid $NON_ROOT_USERNAME env PATH="$PATH" rm --version | sed -n '1s/.* //p' -` +) case $rm_version in $PACKAGE_VERSION) ;; *) skip_ "cannot access just-built rm as user $NON_ROOT_USERNAME";; diff --git a/tests/rm/isatty b/tests/rm/isatty index b1e558b66..f28653cc8 100755 --- a/tests/rm/isatty +++ b/tests/rm/isatty @@ -44,7 +44,6 @@ kill $pid > /dev/null 2>&1 cat > exp <<\EOF rm: remove write-protected regular empty file 'f'? x EOF -#` # Append an 'x' and a newline. echo x >> out -- cgit v1.2.3-54-g00ecf