From 79490a6ad3a2f44c937708c841bc61633e74da77 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damien=20Nad=C3=A9?= Date: Mon, 2 May 2016 16:53:43 +0200 Subject: [PATCH] contrib/completion/bash/docker: _docker_docker: quoting __docker_to_extglob result to avoid failglob interference MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Damien Nadé --- contrib/completion/bash/docker | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/completion/bash/docker b/contrib/completion/bash/docker index 3a0f936321..0907c63146 100644 --- a/contrib/completion/bash/docker +++ b/contrib/completion/bash/docker @@ -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