]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
Don't assume that the file owner username
authorJim Meyering <jim@meyering.net>
Tue, 21 Jan 2003 12:36:56 +0000 (12:36 +0000)
committerJim Meyering <jim@meyering.net>
Tue, 21 Jan 2003 12:36:56 +0000 (12:36 +0000)
length is less than 9 in ls output: instead, omit that field
altogether.  Reported by, and suggested fix from, Ferdinand.

tests/cp/same-file

index a190e22c57c96791f68155043b74e5e3dda349aa..b42707cb0727c57a45fcc85aa5ac456dc610285c 100755 (executable)
@@ -70,10 +70,10 @@ for args in 'foo symlink' 'symlink foo' 'foo foo' 'sl1 sl2' 'foo hardlink'; do
        # and put brackets around the output.
        test -s _err && echo "[`sed 's/^[^:][^:]*:/cp:/' _err`]"
        # Strip off all but the file names.
-       ls="`ls -lG --ignore=_err . \
+       ls="`ls -lgG --ignore=_err . \
            | sed \
                -e '/^total /d' \
-               -e 's/^...............................................//'`"
+               -e 's/^......................................//'`"
        echo "($ls)"
        # Make sure the original is unchanged and that
        # the destination is a copy.