Skip to main content

Timeline for POSIX equivalent for GNU timeout?

Current License: CC BY-SA 3.0

4 events
when toggle format what by license comment
Oct 11, 2017 at 5:00 comment added Wildcard You can also do better with timeout="$1"; shift and (exec "$@"; echo "Command completed"; kill $$) rather than re-wordsplitting the argument list.
Oct 11, 2017 at 4:59 comment added Wildcard This is not POSIX compliant as (a) the function definition should be cleanup() { ...; } and (b) job control is a bash feature not specified by POSIX (though ksh and others have it also). Nice script, though!
Apr 14, 2016 at 18:54 history edited Guido CC BY-SA 3.0
deleted 1 character in body
Apr 14, 2016 at 18:32 history answered Guido CC BY-SA 3.0