From 62b6aef1c1419a35a0a63bb0e9e34a81ce701897 Mon Sep 17 00:00:00 2001 From: Julien Rabier Date: Fri, 12 Feb 2021 16:52:53 +0100 Subject: [PATCH] [zsh] fix buildah completion --- dot_zsh/completion/buildah.bash | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/dot_zsh/completion/buildah.bash b/dot_zsh/completion/buildah.bash index 0aa7f10..fdd9340 100644 --- a/dot_zsh/completion/buildah.bash +++ b/dot_zsh/completion/buildah.bash @@ -70,8 +70,8 @@ __buildah_pos_first_nonflag() { # options immediately following their corresponding long form. # This order should be applied to lists, alternatives and code blocks. -__buildah_previous_extglob_setting=$(shopt -p extglob) -shopt -s extglob +#__buildah_previous_extglob_setting=$(shopt -p extglob) +#setopt extended_glob # __buildah_list_mounted __buildah_list_mounted() { @@ -1145,8 +1145,8 @@ esac } _buildah() { - local previous_extglob_setting=$(shopt -p extglob) - shopt -s extglob + #local previous_extglob_setting=$(shopt -p extglob) + #shopt -s extglob local commands=( add @@ -1209,11 +1209,11 @@ done local completions_func=_buildah_${command/-/_} declare -F $completions_func >/dev/null && $completions_func - eval "$previous_extglob_setting" + #eval "$previous_extglob_setting" return 0 } - eval "$__buildah_previous_extglob_setting" - unset __buildah_previous_extglob_setting +#eval "$__buildah_previous_extglob_setting" +#unset __buildah_previous_extglob_setting complete -F _buildah buildah