[PATCH 7 of 7] help: rewrite template examples to not use shell escaping
Yuya Nishihara
yuya at tcha.org
Tue Jul 14 10:12:52 CDT 2015
On Tue, 14 Jul 2015 16:52:41 +0200, Pierre-Yves David wrote:
> On 07/13/2015 11:17 PM, Matt Mackall wrote:
> > On Sun, 2015-07-12 at 23:55 +0900, Yuya Nishihara wrote:
> >> # HG changeset patch
> >> # User Yuya Nishihara <yuya at tcha.org>
> >> # Date 1436691565 -32400
> >> # Sun Jul 12 17:59:25 2015 +0900
> >> # Node ID 1d80ec69ca97be815499d00e21c8b6ee20a7485c
> >> # Parent e12c8b4dbe016ba1c34fd30caabaa1c72c5b0194
> >> help: rewrite template examples to not use shell escaping
> >
> > Nice work. These are queued for default, thanks.
>
> Mads just spotted that the last change seems to introduce a single
> quoted string into another (existing) single quoted string.
>
> That seems wrong.
It is intentional. Because escape sequences are not re-interpreted, inner
template should be parsed like a shell command expansion, not like an eval:
'{"{"\\"}"}\n' -> \ # shell-like, {} == $()
'{"{\"\\\\\"}"}\n' -> \ # eval-like
More information about the Mercurial-devel
mailing list