-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
remove unnecessary semicolon which breaks zsh on mac #16185
Conversation
you're kidding me. it is a load bearing semi-colon? |
Now we don't use kustomize should I just nuke the braces? |
saw the lint failure only after approving :D |
note to self, make Faseela an approver for Ukranian too |
It's required for bash, we are using The actual way to handle stuff like this is have a POSIX sh is the actual "common" subset to target if you want stuff that runs in any shell. |
I don't think it's "required for bash" in the sense that things work if you remove it, but only because the only remaining command is a I also think our shellcheck scripts aren't smart enough to distinguish between POSIX sh and bash at this point? Should we go for the trivial fix of changing the command?
...seems like it will do what we want? |
yeah, It seems to me that something like this should work
|
Right - my point is that we're doing bash-centric linting and CI, so we should expect breakage for non-bash, because
Fair enough - shellcheck definitely can distinguish, but our stuff wrapping it may not be able to. |
zsh, in many default configurations, escapes special characters on paste. The
;
in the Gateway API example is replaced with\;
which causes the command to fail.As it's not a load-bearing semi-colon, lets just remove it.
Fixes #16162