1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-04-19 10:15:48 +02:00

Don't assume that the file owner username

length is less than 9 in ls output: instead, omit that field
altogether.  Reported by, and suggested fix from, Ferdinand.
This commit is contained in:
Jim Meyering
2003-01-21 12:36:56 +00:00
parent 8cdd6ee1d6
commit 59670ee05b

View File

@@ -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.