File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -2231,7 +2231,9 @@ _comp_command_offset()
22312231 compopt -o filenames
22322232 COMPREPLY=($( compgen -d -c -- " $cur " ) )
22332233 else
2234- local cmd=${COMP_WORDS[0]} compcmd=${COMP_WORDS[0]}
2234+ local ret
2235+ _comp_dequote " ${COMP_WORDS[0]} " || ret=${COMP_WORDS[0]}
2236+ local cmd=$ret compcmd=$ret
22352237 local cspec=$( complete -p " $cmd " 2> /dev/null)
22362238
22372239 # If we have no completion for $cmd yet, see if we have for basename
@@ -2294,7 +2296,7 @@ _comp_command_offset()
22942296 done
22952297 else
22962298 cspec=${cspec# complete}
2297- cspec=${cspec%% " $compcmd " }
2299+ cspec=${cspec%%@ ( " $compcmd " | " ' ${compcmd // \' / \'\\\'\' } ' " ) }
22982300 COMPREPLY=($( eval compgen " $cspec " -- ' $cur' ) )
22992301 fi
23002302 break
You can’t perform that action at this time.
0 commit comments