We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
{ => _comp_}quote
1 parent 6b2b97e commit 1cd1d67Copy full SHA for 1cd1d67
completions/_umount.linux
@@ -15,8 +15,10 @@ _reply_compgen_array()
15
# argument.
16
local i wlist
17
for i in ${!COMPREPLY[*]}; do
18
- local q=$(quote "$(printf %q "${COMPREPLY[i]}")")
19
- wlist+=$q$'\n'
+ local ret
+ printf -v ret %q "${COMPREPLY[i]}"
20
+ _comp_quote "$ret"
21
+ wlist+=$ret$'\n'
22
done
23
24
# We also have to add another round of escaping to $cur.
completions/export
@@ -31,7 +31,9 @@ _export()
31
case $cur in
32
*=)
33
local pname=${cur%=}
34
- local pval=$(quote "${!pname-}")
35
+ _comp_quote "${!pname-}"
36
+ local pval=$ret
37
# Complete previous value if it's not empty.
38
if [[ $pval != \'\' ]]; then
39
COMPREPLY=("$pval")
0 commit comments