-
Notifications
You must be signed in to change notification settings - Fork 40.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix zsh completion: unknown file attribute error #38104
Fix zsh completion: unknown file attribute error #38104
Conversation
Can a kubernetes member verify that this patch is reasonable to test? If so, please reply with "@k8s-bot ok to test" on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands will still work. Regular contributors should join the org to skip this step.
If you have questions or suggestions related to this bot's behavior, please file an issue against the [kubernetes/test-infra](https://github.com/kubernetes/test-infra/issues/new?title=Prow%20issue:) repository.
|
Thanks for your pull request. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please follow instructions at https://github.com/kubernetes/kubernetes/wiki/CLA-FAQ to sign the CLA. Once you've signed, please reply here (e.g. "I signed it!") and we'll verify. Thanks.
If you have questions or suggestions related to this bot's behavior, please file an issue against the [kubernetes/test-infra](https://github.com/kubernetes/test-infra/issues/new?title=Prow%20issue:) repository.
|
1 similar comment
Thanks for your pull request. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please follow instructions at https://github.com/kubernetes/kubernetes/wiki/CLA-FAQ to sign the CLA. Once you've signed, please reply here (e.g. "I signed it!") and we'll verify. Thanks.
If you have questions or suggestions related to this bot's behavior, please file an issue against the [kubernetes/test-infra](https://github.com/kubernetes/test-infra/issues/new?title=Prow%20issue:) repository.
|
I signed it |
pkg/kubectl/cmd/completion.go
Outdated
@@ -258,6 +258,7 @@ fi | |||
__kubectl_convert_bash_to_zsh() { | |||
sed \ | |||
-e 's/declare -F/whence -w/' \ | |||
-e 's/\$\@/\$\{\*\}/' \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure about this change. Which $@
does it apply to?
@elipapa can you try this: source <(kubectl completion zsh | sed 's/_get_comp_words_by_ref "\$@"/_get_comp_words_by_ref "\$*"/') |
@elipapa ^^ tested here with zsh 5.2. works fine. |
not working for me with zsh 5.2. my fix does work however.
…On Mon, Dec 5, 2016 at 3:09 PM, Dr. Stefan Schimanski < ***@***.***> wrote:
@elipapa <https://github.com/elipapa> ^^ tested here with zsh 5.2. works
fine.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#38104 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAG34ttkHYZF4-JiQEXv0QHemi_MCxTsks5rFCkUgaJpZM4LELsl>
.
|
I don't like the global |
Which of the
|
Any news on this? |
[APPROVALNOTIFIER] Needs approval from an approver in each of these OWNERS Files: We suggest the following people: |
@elipapa any updates? |
I have retested the previous suggestion on a different system source <(kubectl completion zsh | sed 's/_get_comp_words_by_ref "\$@"/_get_comp_words_by_ref "\$*"/') and it does indeed work. |
Lgtm. Please squash ASAP to get it into 1.6. |
sourcing the file with `zsh` > 4 resulted in an `unknown file attribute`. More details at http://stackoverflow.com/questions/37220495/zsh-unknown-file-attribute replacing $@ with $* for get_comp_words as suggested by @sttts worked to resolve the issue
72586c7
to
136c90a
Compare
@sttts squashed. unsure on what i should do for the next step. any pointers? |
@elipapa this PR will go into the submit queue now. So with some luck it's merged in an hour. |
And thanks for the fix 👍 |
@sttts the fix was yours! i just found the problem |
Automatic merge from submit-queue |
What this PR does / why we need it:
Fixes zsh completion.
Sourcing the file with
zsh
> 4 resulted in anunknown file attribute
.More details at http://stackoverflow.com/questions/37220495/zsh-unknown-file-attribute