-
Notifications
You must be signed in to change notification settings - Fork 7k
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
Fixes #5046, zsh completion #5072
Conversation
Signed-off-by: Peter Stalman <sarkedev@gmail.com>
Unfortunately this did not solve my ZSH bash error:
This seems to be an issue with the OSX version of sed:
However GNU sed seems to work:
|
This sed seems to work with BSD sed:
Changing the line to use the word boundaries should make this compatible for others:
|
I believe the answer is to revert |
@philoserf, that will only break the ZSH completion. So yes, you wouldn't get the error, but you would also not get any completion. The issue is the introduction of the shorter aliases for bash, which are not correctly converted to to ZSH. |
PR helm#5072 followed by helm#5406 tweaked the handling of the associative array 'aliashash' when in zsh. However, upon further investigation the root of the problem was the 'aliashash' was not being declared properly as it was declared within a method and therefore not accessible to the rest of the completion script. The previous commit of this PR makes the necessary change to properly declare 'aliashash' which makes the previous tweak unecessary. This commit removes the tweak. Signed-off-by: Marc Khouzam <marc.khouzam@ville.montreal.qc.ca>
Turns out that the real root of this bug was that the 'aliashash' associative array was not being declared properly. PR #5680 fixes it and removes this fix, which is no longer needed. |
And the saga continues. It seems that removing the quotes is necessary but for a completely different reason. See 48f0e31 for details. |
Signed-off-by: Peter Stalman sarkedev@gmail.com
What this PR does / why we need it:
Closes #5046
Special notes for your reviewer:
Small fix. Removes quotes in aliashash keys to work with ZSH.
If applicable: