tshark: Simplify cut usage

master
Ville Skyttä 2014-12-29 11:37:38 +02:00
parent a592a09cc6
commit 23bf3bd412
1 changed files with 1 additions and 1 deletions

View File

@ -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
;;