Thread (1 message) 1 message, 1 author, 2020-07-21

Re: [PATCH] git-prompt: changes == to = for zsh's sake

From: Junio C Hamano <hidden>
Date: 2020-07-21 00:40:59

Aaron Schrab [off-list ref] writes:
An alternate fix would be to switch to using double square brackets
instead of single square brackets for the test. Since contents of
double brackets have their own parsing rules the `equals` option
doesn't apply there, and so `==` is available for checking equality
same as in bash.  IMHO, this provides saner behavior in general;
although it's definitely not POSIX compliant.
It won't be but it does not have to be POSIX compliant anyway; after
all this is prompt support for bash with support for zsh added on
the side, neither is limited to strict POSIX.

I'd say that the patch posted is good as-is.

Thanks.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help