Commit 7a8c4676 authored by Kubernetes Submit Queue's avatar Kubernetes Submit Queue Committed by GitHub

Merge pull request #38104 from elipapa/zsh-completions-fix

Automatic merge from submit-queue Fix zsh completion: unknown file attribute error **What this PR does / why we need it**: Fixes zsh completion. Sourcing the file with `zsh` > 4 resulted in an `unknown file attribute`. More details at http://stackoverflow.com/questions/37220495/zsh-unknown-file-attribute
parents 6edd0790 136c90a7
......@@ -271,6 +271,7 @@ fi
__kubectl_convert_bash_to_zsh() {
sed \
-e 's/declare -F/whence -w/' \
-e 's/_get_comp_words_by_ref "\$@"/_get_comp_words_by_ref "\$*"/' \
-e 's/local \([a-zA-Z0-9_]*\)=/local \1; \1=/' \
-e 's/flags+=("\(--.*\)=")/flags+=("\1"); two_word_flags+=("\1")/' \
-e 's/must_have_one_flag+=("\(--.*\)=")/must_have_one_flag+=("\1")/' \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment