Re: [PATCH 6/8] git-prompt: add fallback for shells without $'...'

Junio C Hamano
2024-07-25T16:24:08Z

avih <avihpit@yahoo.com> writes:

> 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.