mirror of
git://git.sv.gnu.org/coreutils.git
synced 2026-04-20 18:56:39 +02:00
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.
This commit is contained in:
@@ -18810,13 +18810,9 @@ The program accepts the following options. Also see @ref{Common options}.
|
||||
Options must precede operands.
|
||||
|
||||
@table @samp
|
||||
@item --preserve-status
|
||||
@opindex --preserve-status
|
||||
Return the exit status of the managed @var{command} on timeout, rather than
|
||||
a specific exit status indicating a timeout. This is useful if the
|
||||
managed @var{command} supports running for an indeterminate amount of time.
|
||||
|
||||
@item --foreground
|
||||
@item -f
|
||||
@itemx --foreground
|
||||
@opindex -f
|
||||
@opindex --foreground
|
||||
Don't create a separate background program group, so that
|
||||
the managed @var{command} can use the foreground TTY normally.
|
||||
@@ -18856,6 +18852,14 @@ either because the signal was blocked or ignored, or if the @var{command} takes
|
||||
too long (e.g. for cleanup work) to terminate itself within a certain amount
|
||||
of time.
|
||||
|
||||
@item -p
|
||||
@itemx --preserve-status
|
||||
@opindex -p
|
||||
@opindex --preserve-status
|
||||
Return the exit status of the managed @var{command} on timeout, rather than
|
||||
a specific exit status indicating a timeout. This is useful if the
|
||||
managed @var{command} supports running for an indeterminate amount of time.
|
||||
|
||||
@item -s @var{signal}
|
||||
@itemx --signal=@var{signal}
|
||||
@opindex -s
|
||||
|
||||
Reference in New Issue
Block a user