mirror of
git://git.sv.gnu.org/coreutils
synced 2026-06-01 21:41:41 -04:00
Don't assume that 'ls' output is fixed-width.
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user