mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Merge pull request #17806 from albers/fix-17768
Fix bash completion on systems where extglob is not set
This commit is contained in:
commit
d575d1e094
1 changed files with 6 additions and 0 deletions
|
@ -49,6 +49,9 @@
|
|||
# options immediately following their corresponding long form.
|
||||
# This order should be applied to lists, alternatives and code blocks.
|
||||
|
||||
__docker_previous_extglob_setting=$(shopt -p extglob)
|
||||
shopt -s extglob
|
||||
|
||||
__docker_q() {
|
||||
docker ${host:+-H "$host"} ${config:+--config "$config"} 2>/dev/null "$@"
|
||||
}
|
||||
|
@ -1890,4 +1893,7 @@ _docker() {
|
|||
return 0
|
||||
}
|
||||
|
||||
eval "$__docker_previous_extglob_setting"
|
||||
unset __docker_previous_extglob_setting
|
||||
|
||||
complete -F _docker docker
|
||||
|
|
Loading…
Add table
Reference in a new issue