mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-17 18:02:09 +03:00
Don't assume that 'ls' output is fixed-width.
This commit is contained in:
1 parent
a6616a3786
commit
710dca5363
1 file changed
+2
-2
@@ -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