mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-17 18:02:09 +03: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 parent
77b694e03a
commit
572d582d8d
1 file changed
+1
-1
+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