Also fail if cat-to-create-expected-output

fails.  Otherwise, if both `exp' and `out' end up empty because
of e.g., a full disk, they would mistakenly compare equal.
This commit is contained in:
Jim Meyering
2003-07-11 20:40:28 +00:00
parent 6568f37384
commit a79673ff2a

View File

@@ -28,7 +28,7 @@ fi
fail=0
FIXME > out || fail=1
cat <<\EOF > exp
cat <<\EOF > exp || fail=1
FIXME
EOF