diff options
author | Jim Meyering <jim@meyering.net> | 2003-01-21 12:36:56 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2003-01-21 12:36:56 +0000 |
commit | 59670ee05b908e152d85be4e5de3ef0669924501 (patch) | |
tree | de3e59b7738aa1ceef357d52c905619e19240666 /tests | |
parent | 8cdd6ee1d6f9a5e2d78fcc2a430c1d3fe40e7856 (diff) | |
download | coreutils-59670ee05b908e152d85be4e5de3ef0669924501.tar.xz |
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.
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/cp/same-file | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/cp/same-file b/tests/cp/same-file index a190e22c5..b42707cb0 100755 --- a/tests/cp/same-file +++ b/tests/cp/same-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. |