mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Merge pull request #22455 from Anvil/bash-completion-failglob
docker bash completions fails when failglob is enabled
This commit is contained in:
commit
f7c79cdeae
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue