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/cp/same-file | |
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/cp/same-file')
-rwxr-xr-x | tests/cp/same-file | 6 |
1 files changed, 3 insertions, 3 deletions
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. |