tshark: Simplify cut usage
This commit is contained in:
parent
a592a09cc6
commit
23bf3bd412
@ -52,7 +52,7 @@ _tshark()
|
||||
-O)
|
||||
local prefix=; [[ $cur == *,* ]] && prefix="${cur%,*},"
|
||||
COMPREPLY=( $( compgen -P "$prefix" -W \
|
||||
"$( "$1" -G protocols 2>&1 | cut -d$'\t' -f 3 )" \
|
||||
"$( "$1" -G protocols 2>&1 | cut -f 3 )" \
|
||||
-- "${cur##*,}" ) )
|
||||
return
|
||||
;;
|
||||
|
Loading…
x
Reference in New Issue
Block a user