From: Junio C Hamano Date: Thu, 25 Jul 2024 16:24:05 GMT Subject: Re: [PATCH 6/8] git-prompt: add fallback for shells without $'...' Message-ID: In-Reply-To: <258254527.2690084.1721914093743@mail.yahoo.com> avih 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.