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