Skip to content

Commit 26d8b34

Browse files
akinomyogascop
authored andcommitted
fix(gcc): quote the command name $1 for custom IFS
1 parent 9bdd734 commit 26d8b34

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

completions/gcc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ _comp_cmd_gcc()
77

88
# Test that GCC is recent enough and if not fallback to
99
# parsing of --completion option.
10-
if ! $1 --completion=" " 2>/dev/null; then
10+
if ! "$1" --completion=" " 2>/dev/null; then
1111
if [[ $cur == -* ]]; then
1212
local cc=$("$1" -print-prog-name=cc1 2>/dev/null)
1313
[[ $cc ]] || return

0 commit comments

Comments
 (0)