From cf430d3590040f03e580847bfcc802dfdfa72f44 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sat, 27 Jun 1998 22:10:02 +0000 Subject: *** empty log message *** --- tests/cp/same-file | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'tests') diff --git a/tests/cp/same-file b/tests/cp/same-file index 413bae03d..5fc4fd6e4 100755 --- a/tests/cp/same-file +++ b/tests/cp/same-file @@ -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 -- cgit v1.2.3-70-g09d2