Skip to content

Commit e41e3b5

Browse files
committed
fix(carton,gssdp-discover,influx): use normal IFS
1 parent acebdc0 commit e41e3b5

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

completions/carton

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ _comp_cmd_carton__commands()
44
{
55
local cmds=$("${1:-carton}" usage 2>&1 |
66
command sed -ne '/.*command.* is one of/{n;p;q;}')
7-
COMPREPLY+=($(IFS="$IFS," compgen -W "$cmds" -- "$cur"))
7+
COMPREPLY+=($(IFS=$' \t\n,' compgen -W "$cmds" -- "$cur"))
88
}
99

1010
_comp_cmd_carton__command_help()

completions/gssdp-discover

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ _comp_cmd_gssdp_discover()
1818
local types=$("$1" --help 2>&1 |
1919
command sed -ne 's/^.*--message-type=.*(\([^)]*\))$/\1/p')
2020
COMPREPLY=($(
21-
IFS+=,
21+
IFS=$' \t\n,'
2222
compgen -W "$types" -- "$cur"
2323
))
2424
return

completions/influx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ _comp_cmd_influx()
1616
-format | -precision | -consistency)
1717
local args=$("$1" --help 2>&1 | awk "\$1 == \"$prev\" { print \$2 }")
1818
COMPREPLY=($(
19-
IFS+="\"'|"
19+
IFS=$' \t\n'"\"'|"
2020
compgen -W "$args" -- "$cur"
2121
))
2222
return

0 commit comments

Comments
 (0)