diff options
author | Jim Meyering <jim@meyering.net> | 1998-06-27 22:10:02 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1998-06-27 22:10:02 +0000 |
commit | cf430d3590040f03e580847bfcc802dfdfa72f44 (patch) | |
tree | 5dddd98127ad595b070303dda2265b332a5b17ec /tests | |
parent | 6ae99a42905ef98d07ebf97c80805eaa3fb039ea (diff) | |
download | coreutils-cf430d3590040f03e580847bfcc802dfdfa72f44.tar.xz |
*** empty log message ***
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/cp/same-file | 9 |
1 files changed, 6 insertions, 3 deletions
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 |