]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
Don't assume that 'ls' output is fixed-width.
authorJim Meyering <jim@meyering.net>
Mon, 8 Dec 2003 09:03:51 +0000 (09:03 +0000)
committerJim Meyering <jim@meyering.net>
Mon, 8 Dec 2003 09:03:51 +0000 (09:03 +0000)
tests/mv/part-symlink

index ccceee511ef0a83c675b9dd05c974c6c51e52981..e009b84492284387f37437c9b20e7879afb86529 100755 (executable)
@@ -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.