From: Jim Meyering Date: Sat, 8 Feb 2003 20:08:55 +0000 (+0000) Subject: Don't assume that the file owner username length is less than 9 X-Git-Tag: v4.5.7~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6a79d4805ec90113ea0a9d7c7197ea98a69718aa;p=thirdparty%2Fcoreutils.git Don't assume that the file owner username length is less than 9 in ls output: instead, omit that field altogether. --- diff --git a/tests/mv/part-symlink b/tests/mv/part-symlink index f2514c297e..cf2055fdf6 100755 --- a/tests/mv/part-symlink +++ b/tests/mv/part-symlink @@ -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.