-
Notifications
You must be signed in to change notification settings - Fork 923
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
tab-completion displayed wrong character in zsh #1254
Comments
@aliuq: This issue is currently awaiting triage. SIG CLI takes a lead on issue triage for this repo, but any Kubernetes member can accept issues by applying the The Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
@aliuq this looks similar as the problem reported in kubernetes/kubernetes#105587. It was caused by the use of zsh 5.0.x. Is that your case? Zsh 5.1 or higher doesn't have the problem. The problem has also been fixed in Cobra but has not yet been incorporated in kubectl. Please let us know if this is the problem for you as well. |
For info, here is the fix in Cobra: spf13/cobra#1665 |
@marckhouzam thanks for your reply, I will try upgrade zsh now |
upgrade zsh version can fixed it. |
I've created the PR #112362 to fix this issue, but for those still facing this issue after installing Oh My Zsh with sed -i '6i\ sed -i '\''s/tab=$(printf \x27\\t\x27)/tab="$(printf \x27\\t\x27)"/'\'' "$ZSH_CACHE_DIR/completions/_kubectl"\' ~/.oh-my-zsh/plugins/kubectl/kubectl.plugin.zsh && \
sed -i '9i\ sed -i '\''s/tab=$(printf \x27\\t\x27)/tab="$(printf \x27\\t\x27)"/'\'' "$ZSH_CACHE_DIR/completions/_kubectl"\' ~/.oh-my-zsh/plugins/kubectl/kubectl.plugin.zsh && \
sed -i '12i\ sed -i '\''s/tab=$(printf \x27\\t\x27)/tab="$(printf \x27\\t\x27)"/'\'' "$ZSH_CACHE_DIR/completions/_kubectl"\' ~/.oh-my-zsh/plugins/kubectl/kubectl.plugin.zsh && \
exec zsh |
What happened:
What you expected to happen:
Display the right
How to reproduce it (as minimally and precisely as possible):
Anything else we need to know?:
Environment:
kubectl version
):v1.23.9+k3s1
cat /etc/os-release
):Linux 5.18.14-1.el7.elrepo.x86_64
The text was updated successfully, but these errors were encountered: