Skip to content

Commit

Permalink
tshark: prevent a single-character file from breaking -G completion
Browse files Browse the repository at this point in the history
  • Loading branch information
Lekensteyn authored and scop committed Oct 11, 2018
1 parent 5869351 commit 8618ea5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion completions/tshark
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ _tshark()
return
;;
-*G)
COMPREPLY=( $( compgen -W "$( "$1" -G ? 2>/dev/null | \
COMPREPLY=( $( compgen -W "$( "$1" -G \? 2>/dev/null | \
awk '/^[ \t]*-G / \
{ sub("^[[]","",$2); sub("[]]$","",$2); print $2 }' )" \
-- "$cur" ) )
Expand Down

0 comments on commit 8618ea5

Please sign in to comment.