1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-01-19 11:31:26 +01:00

_timeout: Fix wrong syntax

This commit is contained in:
Mikael Magnusson 2021-05-16 17:28:37 +02:00
parent 8bdbc61497
commit 0b3aa73af1
2 changed files with 5 additions and 1 deletions

View file

@ -1,3 +1,7 @@
2021-05-16 Mikael Magnusson <mikachu@gmail.com>
* unposted: Completion/Unix/Command/_timeout: Fix wrong syntax
2021-05-15 Bart Schaefer <schaefer@zsh.org>
* Han Pingtian: 33465 (very belatedly): use prctl() for "jobs -Z"

View file

@ -15,6 +15,6 @@ _arguments -S -A "-" $args \
'--preserve-status[always exit with the same status as command even if it times out]' \
"--foreground[don't propagate timeout to the command children]" \
'(-s --signal)'{-s,--signal}'[specify the signal to send on timeout]:signal:_signals' \
'(-k --kill-after)'{-k,--kill-after}'[followup first signal with SIGKILL if command persists after specified time]:time:time' \
'(-k --kill-after)'{-k,--kill-after}'[followup first signal with SIGKILL if command persists after specified time]:time' \
'1: :_guard "[0-9.]#([smhd]|)" duration' \
'*:::command:_normal'