File tree Expand file tree Collapse file tree 5 files changed +6
-6
lines changed Expand file tree Collapse file tree 5 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -58,9 +58,9 @@ _comp_cmd_dict()
58
58
# in a pattern instead.
59
59
if [[ $cur == + ([-A-Za-z0-9/.]) ]]; then
60
60
COMPREPLY=($( compgen -W \
61
- ' $(command grep "^${cur//./\\.}" $dictfile)' -- " $cur " ) )
61
+ ' $(command grep "^${cur//./\\.}" " $dictfile" )' -- " $cur " ) )
62
62
else
63
- COMPREPLY=($( compgen -W ' $(cat $dictfile)' -- " $cur " ) )
63
+ COMPREPLY=($( compgen -W ' $(cat " $dictfile" )' -- " $cur " ) )
64
64
fi
65
65
fi
66
66
} &&
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ _comp_cmd_invoke_rc_d()
30
30
elif [[ -x $sysvdir /$prev ]]; then
31
31
COMPREPLY=($( compgen -W ' `command sed -e "y/|/ /" \
32
32
-ne "s/^.*Usage:[ ]*[^ ]*[ ]*{*\([^}\"]*\).*$/\1/p" \
33
- $sysvdir/$prev`' -- " $cur " ) )
33
+ " $sysvdir/$prev" `' -- " $cur " ) )
34
34
else
35
35
COMPREPLY=()
36
36
fi
Original file line number Diff line number Diff line change 3
3
_comp_cmd_koji__search ()
4
4
{
5
5
COMPREPLY+=($( compgen -W \
6
- ' $("$1" -q search $2 "$cur*" 2>/dev/null)' -- " $cur " ) )
6
+ ' $("$1" -q search "$2" "$cur*" 2>/dev/null)' -- " $cur " ) )
7
7
}
8
8
9
9
_comp_cmd_koji__build ()
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ _comp_cmd_pkg_config()
16
16
for word in " ${words[@]: 1} " ; do
17
17
if [[ $word != -* ]]; then
18
18
COMPREPLY=($( compgen -W \
19
- ' $("$1" $word --print-variables 2>/dev/null)' \
19
+ ' $("$1" " $word" --print-variables 2>/dev/null)' \
20
20
-- " $cur " ) )
21
21
break
22
22
fi
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ _comp_cmd_qdbus()
6
6
_comp_initialize -- " $@ " || return
7
7
8
8
[[ $cur ]] && unset -v " words[$(( ${# words[@]} - 1 )) ]"
9
- COMPREPLY=($( compgen -W ' $(command ${words[@]} 2>/dev/null | \
9
+ COMPREPLY=($( compgen -W ' $(command " ${words[@]}" 2>/dev/null | \
10
10
command sed "s/(.*)//")' -- " $cur " ) )
11
11
} &&
12
12
complete -F _comp_cmd_qdbus qdbus dcop
You can’t perform that action at this time.
0 commit comments