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:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user