]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
Also fail if cat-to-create-expected-output
authorJim Meyering <jim@meyering.net>
Fri, 11 Jul 2003 20:40:28 +0000 (20:40 +0000)
committerJim Meyering <jim@meyering.net>
Fri, 11 Jul 2003 20:40:28 +0000 (20:40 +0000)
fails.  Otherwise, if both `exp' and `out' end up empty because
of e.g., a full disk, they would mistakenly compare equal.

tests/sample-test

index 9cb755c55d330e7beca3e1dbf0f8cfd44d7d9453..7552fb410324c69b1e7fbbf4f6a16efa33840c98 100644 (file)
@@ -28,7 +28,7 @@ fi
 fail=0
 
 FIXME > out || fail=1
-cat <<\EOF > exp
+cat <<\EOF > exp || fail=1
 FIXME
 EOF