timeout: add -f and -p short options as per POSIX 2024
commitf4fbc1a9f93fecc261ddad87d496d827c1eca2b4
authorPádraig Brady <P@draigBrady.com>
Wed, 30 Oct 2024 12:45:58 +0000 (30 12:45 +0000)
committerPádraig Brady <P@draigBrady.com>
Wed, 30 Oct 2024 12:49:26 +0000 (30 12:49 +0000)
tree322d4d189c82d3766bf989f7d3a134d3784dc13a
parent0c9d372c96f2c7ce8c259c5563a48d1816fe611d
timeout: add -f and -p short options as per POSIX 2024

* src/timeout.c: Support -f and -p short options, corresponding to
--foreground and --preserve-status respectively.  This adds
compatability with POSIX 2024 and OpenBSD.
(usage): Separate translations, and reorder the option descriptions.
* doc/coreutils.texi (timeout invocation): Adjust accordingly,
and also reorder the option descriptions alphabetically.
* tests/timeout/timeout.sh: Also test short option variants.
doc/coreutils.texi
src/timeout.c
tests/timeout/timeout.sh