1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

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é 2016-05-02 16:53:43 +02:00
parent b0a5762348
commit 79490a6ad3

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