1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-07-21 00:07:59 +02:00

Ensure that $? is 0 for the final `exit 0'.

Otherwise, with at least the /bin/sh from HPUX 10.20,
the trap code would end up converting that to exit 1 and thus an
unexpected test failure.  Reported by Christian Krackowizer.
This commit is contained in:
Jim Meyering
2003-08-01 22:33:04 +00:00
parent 77b694e03a
commit 572d582d8d
+1 -1
View File
@@ -34,6 +34,6 @@ fail=0
# This would take so long that it appears to infloop
# when using version from fileutils-4.0k.
# When the command completes, expect it to fail.
shred -u $file > /dev/null 2>&1 && fail=1
shred -u $file > /dev/null 2>&1 && fail=1 || :
exit $fail