]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
Don't assume that the file owner username length is less than 9
authorJim Meyering <jim@meyering.net>
Sat, 8 Feb 2003 20:08:55 +0000 (20:08 +0000)
committerJim Meyering <jim@meyering.net>
Sat, 8 Feb 2003 20:08:55 +0000 (20:08 +0000)
in ls output: instead, omit that field altogether.

tests/mv/part-symlink

index f2514c297e6efa468811c9038d7379bc4814ec1f..cf2055fdf66b93eac9a00047f171eb3dc2851b18 100755 (executable)
@@ -99,18 +99,18 @@ for copy in cp mv; do
            }
          # Strip off all but the file names.
          # Remove any site-dependent part of each file name.
-         ls="`ls -lG --ignore=.err . \
+         ls="`ls -gG --ignore=.err . \
              | sed \
                  -e '/^total /d' \
                  -e s,$other_partition_tmpdir/,, \
                  -e s,$pwd_tmp/,, \
-                 -e 's/^...............................................//'`"
-         ls2="`cd $other_partition_tmpdir && ls -lG --ignore=.err . \
+                 -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.