summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2003-12-08 09:03:51 +0000
committerJim Meyering <jim@meyering.net>2003-12-08 09:03:51 +0000
commit710dca5363eb48cd74ed9e276f77f611333a60f2 (patch)
treee69038339d69aba838df1993cb6d96974c4d8243 /tests
parenta6616a3786e3751c34f77100530796b141e84cb8 (diff)
downloadcoreutils-710dca5363eb48cd74ed9e276f77f611333a60f2.tar.xz
Don't assume that 'ls' output is fixed-width.
Diffstat (limited to 'tests')
-rwxr-xr-xtests/mv/part-symlink4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/mv/part-symlink b/tests/mv/part-symlink
index ccceee511..e009b8449 100755
--- a/tests/mv/part-symlink
+++ b/tests/mv/part-symlink
@@ -108,13 +108,13 @@ for copy in cp mv; do
-e '/^total /d' \
-e s,$other_partition_tmpdir/,, \
-e s,$pwd_tmp/,, \
- -e 's/^......................................//'`"
+ -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.