Merge pull request #22455 from Anvil/bash-completion-failglob
docker bash completions fails when failglob is enabled Upstream-commit: f7c79cdeae67cec70c5257e808cb51eb7a90d35c Component: engine
This commit is contained in:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user