]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
add commented `diff -u' command
authorJim Meyering <jim@meyering.net>
Wed, 12 Aug 1998 17:14:34 +0000 (17:14 +0000)
committerJim Meyering <jim@meyering.net>
Wed, 12 Aug 1998 17:14:34 +0000 (17:14 +0000)
tests/cp/same-file

index 910973f66b649b6574056ce1cd9faeaa370e41b2..b1b9f8693ca1baa14c44a5d2b0a9246c67e6ccbf 100755 (executable)
@@ -51,6 +51,7 @@ for args in 'foo symlink' 'symlink foo' 'foo foo' 'sl1 sl2' 'foo hardlink'; do
     case "$args" in *sl2*) ln -s foo sl2;; esac
     (
       (
+       echo 1>&2 $CP $options $args
        $CP $options $args 2>.err
        echo $? $options
 
@@ -166,5 +167,8 @@ cat <<\EOF > $expected
 
 EOF
 
+# Uncomment this if you see a failure and want to try to diagnose it.
+# diff -u $expected $actual 1>&2
+
 cmp $expected $actual
 exit $?