Re: [PATCH 6/8] git-prompt: add fallback for shells without $'...'
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jul 25, 2024, 16:24 UTC
- Message-ID
- <xmqqsevxignu.fsf@gitster.g>
- In-Reply-To
- <258254527.2690084.1721914093743@mail.yahoo.com>
avih <avihpit@yahoo.com> writes:
Show 10 quoted lines
> eval "$(printf ' > __git_SOH="\1" __git_STX="\2" __git_ESC="\33" > __git_LF="\n" __git_CRLF="\r\n" > ')" > > I think it strikes the best balance between the options, both > for this patch, and possibly also as a general recomendation. > > So unless there are objections or better suggestions, this is > what I currently prefer for this patch.
Modulo my superstition against \d and \dd, the above does look very readable and hard to break.
Thanks.