summaryrefslogtreecommitdiff
path: root/tests/cp
diff options
context:
space:
mode:
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>2008-09-09 19:45:25 +0200
committerJim Meyering <meyering@redhat.com>2008-09-10 13:20:27 +0200
commit9dcebc51be915fb6d0ab2eca36168f3ab12a45c7 (patch)
tree20efa334be05315fc861dc3cca9106d53a03bc45 /tests/cp
parent1084bf78eafe4de0d8f0752a638be97e26157ea1 (diff)
downloadcoreutils-9dcebc51be915fb6d0ab2eca36168f3ab12a45c7.tar.xz
fix minor shell issues in test suite
* tests/misc/help-version: Fix bad quoting. * tests/cp/same-file: Fix unportable shell quoting. * tests/mv/part-symlink: Likewise.
Diffstat (limited to 'tests/cp')
-rwxr-xr-xtests/cp/same-file4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/cp/same-file b/tests/cp/same-file
index 32bdc2a6e..58b8fbae2 100755
--- a/tests/cp/same-file
+++ b/tests/cp/same-file
@@ -110,10 +110,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 . \
+ 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.