diff options
| author | Oliver Kiddle <opk@zsh.org> | 2025-09-25 09:28:35 +0200 |
|---|---|---|
| committer | Oliver Kiddle <opk@zsh.org> | 2025-09-25 09:28:35 +0200 |
| commit | 59247a8a6f77d7a903add949635bae066f7395e7 (patch) | |
| tree | 3082fde9e1fc612639e2877b8b9ba159e70db2f5 /Completion/Unix/Command/_timeout | |
| parent | 53966: completion update based on nmcli 1.52.0 (diff) | |
| download | zsh-59247a8a6f77d7a903add949635bae066f7395e7.tar zsh-59247a8a6f77d7a903add949635bae066f7395e7.tar.gz zsh-59247a8a6f77d7a903add949635bae066f7395e7.tar.bz2 zsh-59247a8a6f77d7a903add949635bae066f7395e7.tar.lz zsh-59247a8a6f77d7a903add949635bae066f7395e7.tar.xz zsh-59247a8a6f77d7a903add949635bae066f7395e7.tar.zst zsh-59247a8a6f77d7a903add949635bae066f7395e7.zip | |
53967: update completions affected by FreeBSD 14.3
Diffstat (limited to 'Completion/Unix/Command/_timeout')
| -rw-r--r-- | Completion/Unix/Command/_timeout | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/Completion/Unix/Command/_timeout b/Completion/Unix/Command/_timeout index 9c7f1a004..f1961012d 100644 --- a/Completion/Unix/Command/_timeout +++ b/Completion/Unix/Command/_timeout @@ -2,14 +2,13 @@ local args -if [[ $service = g* || $OSTYPE != *(freebsd|netbsd|openbsd)* ]]; then - # GNU coreutils or DFly as opposed to Free/Net/OpenBSD implementation - args=( - '(-v --verbose)'{-v,--verbose}'[indicate when signal is sent upon timeout]' - '(- *)--help[display usage information]' - '(- *)--version[display version information]' - ) -fi +[[ $service = g* || $OSTYPE != *(netbsd|openbsd)* ]] && args=( + '(-v --verbose)'{-v,--verbose}'[indicate when signal is sent upon timeout]' +) +[[ $service = g* || $OSTYPE != *(#i)(dragonfly|(free|net|open)bsd)* ]] && args+=( + '(- *)--help[display usage information]' + '(- *)--version[display version information]' +) _arguments -S -A "-" $args \ '--preserve-status[always exit with the same status as command even if it times out]' \ |
