Don't assume that 'ls' output is fixed-width.

This commit is contained in:
Jim Meyering
2003-12-08 09:03:51 +00:00
parent a6616a3786
commit 710dca5363
+2 -2
View File
@@ -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.