Skip to content

Commit b7ededc

Browse files
committed
gnokii: Use <<< instead of echo + pipe
1 parent 657fcf6 commit b7ededc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

completions/gnokii

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ _gnokii()
222222
# safer to use LANG=C
223223
local all_cmd="$( LANG=C _parse_help $1 "--help all" )"
224224
# these 2 below are allowed in combination with others
225-
local main_cmd=$( echo "$all_cmd" | command grep -v -- '--config\|--phone' )
225+
local main_cmd=$( command grep -v -- '--config\|--phone' <<<"$all_cmd" )
226226

227227
# don't provide main command completions if one is
228228
# already on the command line

0 commit comments

Comments
 (0)