mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2025-09-10 07:59:52 +02:00
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:
@@ -28,7 +28,7 @@ fi
|
||||
fail=0
|
||||
|
||||
FIXME > out || fail=1
|
||||
cat <<\EOF > exp
|
||||
cat <<\EOF > exp || fail=1
|
||||
FIXME
|
||||
EOF
|
||||
|
||||
|
||||
Reference in New Issue
Block a user