Skip to content

Commit 408bef0

Browse files
committed
fix(reportbug,ypmatch): quote arguments
1 parent 6db40e6 commit 408bef0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

completions/reportbug

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ _comp_cmd_reportbug()
3232
--tag | --ui | --interface | --type | --bts | --severity | --mode | -${noargopts}[TutBS])
3333
COMPREPLY+=($(
3434
compgen -W \
35-
'$("$1" $prev help 2>&1 | sed -ne "/^[[:space:]]/p")' \
35+
'$("$1" "$prev" help 2>&1 | sed -ne "/^[[:space:]]/p")' \
3636
-- "$cur"
3737
))
3838
return

completions/ypmatch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ _comp_cmd_ypmatch()
1212

1313
if [[ $cmd == ypmatch && $cword -eq 1 && ${#words[@]} -eq 3 ]]; then
1414
map=${words[2]}
15-
COMPREPLY=($(compgen -W '$(ypcat $map 2>/dev/null | \
15+
COMPREPLY=($(compgen -W '$(ypcat "$map" 2>/dev/null | \
1616
cut -d':' -f 1)' -- "$cur"))
1717
else
1818
[[ $cmd == ypmatch && $cword -ne 2 ]] && return

0 commit comments

Comments
 (0)