Re: [PATCH 1/3] completion: be nicer with zsh
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jan 30, 2012, 04:34 UTC
- Message-ID
- <7v8vkperli.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <1327880479-25275-2-git-send-email-felipe.contreras@gmail.com>
Felipe Contreras <felipe.contreras@gmail.com> writes:
> Let's avoid it. This has the advantage that the code is now actually > understandable (at least to me), while before it looked like voodoo.
I am somewhat hesitant to accept a patch to shell scripts on the basis that the patch author does not understand the existing constructs that are standard parts of shell idioms.
Avoiding zsh's bug that cannot use conditional assignment on the no-op colon command (if the bug is really that; it is somewhat hard to imagine if the bug exists only for colon command, though) *is* by itself a good justification for this change, even though the resulting code is harder to read for people who are used to read shell scripts.