contrib/completion/bash/docker: _docker_docker: quoting __docker_to_extglob result to avoid failglob interference

Signed-off-by: Damien Nadé <github@livna.org>
This commit is contained in:
Damien Nadé
2017-06-02 00:07:38 +00:00
committed by Tibor Vass
parent 386bda9aab
commit 63d80a2ba8
+1 -1
View File
@@ -606,7 +606,7 @@ _docker_docker() {
COMPREPLY=( $( compgen -W "$boolean_options $global_options_with_args" -- "$cur" ) )
;;
*)
local counter=$( __docker_pos_first_nonflag $(__docker_to_extglob "$global_options_with_args") )
local counter=$( __docker_pos_first_nonflag "$(__docker_to_extglob "$global_options_with_args")" )
if [ $cword -eq $counter ]; then
COMPREPLY=( $( compgen -W "${commands[*]} help" -- "$cur" ) )
fi