-
Notifications
You must be signed in to change notification settings - Fork 14.4k
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
Installation of kubectl fails when using zsh #2566
Comments
@psankar Did you add the backslashes before This command should work:
This will not, because the backslashes will cause the shell not to interpret the inner curl as a command:
|
@ixdy ah yes. The backslashes are automatically inserted by |
I agree with @psankar. I just ran into the same problem on zsh as well |
Was there any solution to this problem? Currently running into a similar problem:
|
This sounds like a bug in zsh, possibly zsh-users/zsh-autosuggestions#102. |
@ixdy Thanks for the quick response. Running the command using bash resolved the issue. Seems like zsh doesnt play nice after the second curl request. Running |
@kawikadkekahuna what was the full command-line you used in zsh? In the OP it was clearly a zsh bug, since zsh auto-inserted backslashes where it shouldn't be. |
There is a direct link to download the kubectl.exe file: |
Wouldn't it still be best practise to double quote commands that use command substitution and change it from:
to
|
Maintainer of zsh-users/zsh-autosuggestions here. This likely had to do with zsh "bracketed-paste-magic" functionality, which Oh My Zsh enables by default. |
Issues go stale after 90d of inactivity. Prevent issues from auto-closing with an If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Rotten issues close after 30d of inactivity. Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
/remove-lifecycle stale |
getting this issue after trying without the slashes before ( & ): ➜ ~ curl -LO https://storage.googleapis.com/kubernetes-release/release/v10.13.3/bin/darwin/amd64/kubectl && chmod +x kubectl && sudo mv kubectl /usr/local/bin/ % Total % Received % Xferd Average Speed Time Time Time Current |
The version in the URL should match a kubernetes release, not the version of macOS you're using. Try something like |
Should probably change |
This is a...
Problem:
I tried to install kubectl on a Mac OS machine and it fails. I followed the documentation at: https://kubernetes.io/docs/user-guide/prereqs/ and https://kubernetes.io/docs/tutorials/stateless-application/hello-minikube/ and gave a command. The command and the response are below:
Proposed Solution:
Fix the documentation or the url
Page to Update:
https://kubernetes.io/docs/user-guide/prereqs/
https://kubernetes.io/docs/tutorials/stateless-application/hello-minikube/
The text was updated successfully, but these errors were encountered: