]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
*** empty log message ***
authorJim Meyering <jim@meyering.net>
Sat, 27 Jun 1998 22:10:02 +0000 (22:10 +0000)
committerJim Meyering <jim@meyering.net>
Sat, 27 Jun 1998 22:10:02 +0000 (22:10 +0000)
tests/cp/same-file

index 413bae03d012df178f8ca7991532f8f0999ceb4d..5fc4fd6e4baa763e85f53ed340f15facdd27e420 100755 (executable)
@@ -44,8 +44,12 @@ 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 * \
-           | sed 's/^..............................................//'`"
+       exclude=`echo " .err"|sed 's/ / --ignore=/g'`
+       ls="`ls -lG $exclude . \
+           | sed \
+               -e '/^total /d' \
+               -e 's/^..............................................//' \
+    `"
        echo "($ls)"
        # Make sure the original is unchanged and that
        # the destination is a copy.
@@ -156,4 +160,3 @@ cat <<\EOF > $expected
 EOF
 
 cmp $expected $actual || diff -u $expected $actual 1>&2
-    cat $actual 1>&2