diff options
Diffstat (limited to 'completions/tcpdump')
-rw-r--r-- | completions/tcpdump | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/completions/tcpdump b/completions/tcpdump index d93c8795..9a7c2e9c 100644 --- a/completions/tcpdump +++ b/completions/tcpdump @@ -10,7 +10,7 @@ _tcpdump() _filedir return ;; - --interface|-!(-*)i) + --interface | -!(-*)i) _available_interfaces -a return ;; @@ -19,46 +19,46 @@ _tcpdump() return ;; -!(-*)T) - COMPREPLY=( $(compgen -W 'aodv carp cnfp lmp pgm pgm_zmtp1 radius + COMPREPLY=($(compgen -W 'aodv carp cnfp lmp pgm pgm_zmtp1 radius resp rpc rtcp rtp rtcp snmp tftp vat vxlan wb zmtp1' \ - -- "$cur") ) + -- "$cur")) return ;; -!(-*)z) compopt -o filenames - COMPREPLY=( $(compgen -c -- "$cur") ) + COMPREPLY=($(compgen -c -- "$cur")) return ;; - --relinquish-privileges|-!(-*)Z) + --relinquish-privileges | -!(-*)Z) _allowed_users return ;; -!(-*)[BcCDEGMsWy]) return ;; - --time-stamp-type|-!(-*)j) - COMPREPLY=( $(compgen -W 'host host_lowprec host_hiprec adapter - adapter_unsynced' -- "$cur") ) + --time-stamp-type | -!(-*)j) + COMPREPLY=($(compgen -W 'host host_lowprec host_hiprec adapter + adapter_unsynced' -- "$cur")) return ;; - --direction|-!(-*)Q) - COMPREPLY=( $(compgen -W 'in out inout' -- "$cur") ) + --direction | -!(-*)Q) + COMPREPLY=($(compgen -W 'in out inout' -- "$cur")) return ;; --time-stamp-precision) - COMPREPLY=( $(compgen -W 'micro nano' -- "$cur") ) + COMPREPLY=($(compgen -W 'micro nano' -- "$cur")) return ;; esac $split && return - if [[ "$cur" == -* ]]; then - COMPREPLY=( $(compgen -W '$(_parse_usage "$1")' -- "$cur") ) - [[ $COMPREPLY == *= ]] && compopt -o nospace + if [[ $cur == -* ]]; then + COMPREPLY=($(compgen -W '$(_parse_usage "$1")' -- "$cur")) + [[ ${COMPREPLY-} == *= ]] && compopt -o nospace fi } && -complete -F _tcpdump tcpdump + complete -F _tcpdump tcpdump # ex: filetype=sh |