diff options
author | Jim Meyering <meyering@redhat.com> | 2012-04-03 21:42:48 +0200 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2012-04-04 12:22:24 +0200 |
commit | 33230a19ca27d99629a7c8000f56ecce22e956fa (patch) | |
tree | a63b2a76eee78589504868d5fa569776a7518ece /tests/rm | |
parent | b1e9cb9cd2945832b914922fa43808d6f467ba19 (diff) | |
download | coreutils-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/rm')
-rwxr-xr-x | tests/rm/fail-2eperm | 4 | ||||
-rwxr-xr-x | tests/rm/isatty | 1 |
2 files changed, 2 insertions, 3 deletions
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 |