completions/timeout: Stop spewing

GNU timeout prints the version to stdout. Just silence both.
This commit is contained in:
Fabian Homborg 2022-04-21 17:15:20 +02:00
parent be828b50e3
commit c0fc80cb59

View File

@ -6,7 +6,7 @@ complete -c timeout -s s -l signal -d 'Specify the signal to be sent' -xa "$__ki
complete -c timeout -l preserve-status -d 'Exit with same status as COMMAND'
# GNU coreutils ver
if timeout --version 2>/dev/null
if timeout --version &>/dev/null
complete -c timeout -l help -d 'Display this help and exit'
complete -c timeout -l version -d 'Output version and exit'
complete -c timeout -s v -l verbose -d 'Send diagnostic info to stderr'