this long after the initial signal was sent\n\
"), stdout);
fputs (_("\
- -p. --preserve-status\n\
+ -p, --preserve-status\n\
exit with the same status as COMMAND,\n\
even when the command times out\n\
"), stdout);
# exit status propagation even on timeout
# exit status should be 128+TERM
-for opt in '-p' '--preserve-status'; do
- returns_ 124 timeout $opt .1 sleep 10 && fail=1
-done
+returns_ 124 timeout --preserve-status .1 sleep 10 && fail=1
# kill delay. Note once the initial timeout triggers,
# the exit status will be 124 even if the command
# exit status should be 128+KILL
returns_ 124 timeout -s0 -k1 .1 sleep 10 && fail=1
# Ensure a consistent exit status with --foreground
-for opt in '-f' '--foreground'; do
- returns_ 124 timeout $opt -s0 -k1 .1 sleep 10 && fail=1
-done
+returns_ 124 timeout --foreground -s0 -k1 .1 sleep 10 && fail=1
# Ensure 'timeout' is immune to parent's SIGCHLD handler
# Use a subshell and an exec to work around a bug in FreeBSD 5.0 /bin/sh.