Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: A strange quoted nested evaluation issue
- X-seq: zsh-workers 43837
- From: Peter Stephenson <p.stephenson@xxxxxxxxxxx>
- To: <zsh-workers@xxxxxxx>
- Subject: Re: A strange quoted nested evaluation issue
- Date: Tue, 20 Nov 2018 14:26:22 +0000
- Cms-type: 201P
- Dkim-filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20181120142625euoutp01f8c04fdcfe95e981e2bce962dc2eb7c2~o20p9iMal2128621286euoutp01n
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1542723985; bh=5ZfCr72CBl/5xXvf290kcyeJC2FHUjrihwhtd4t7BvU=; h=Subject:From:To:Date:In-Reply-To:References:From; b=NYb2UmP0w4+gh3A6mjH0mS9b+jChyC5j2uylGWXIUHfdPGZbYOnZDWHaabJQEfwZt YApeAo3oVWMB2J9tcHSx3TRcWjlB621iL2dUMI2t4EPaQiWez+46+jDTBVdc6cGsWF L9FJ5pt6087STpjIcp3yf49O2VjanUXR311z9Io0=
- In-reply-to: <1FB702EA-35DA-4155-B8A1-0402B90E79D3@dana.is>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <CAMeu-1UHG4NvYW2gB4QFYoUAKbMgzFnz21QBXxACA5n7L7x8jA@mail.gmail.com> <CGME20181119184040epcas4p1403c267f8811569eed862020cdcf5902@epcas4p1.samsung.com> <1FB702EA-35DA-4155-B8A1-0402B90E79D3@dana.is>
On Mon, 2018-11-19 at 12:39 -0600, dana wrote:
> On 19 Nov 2018, at 02:04, Ian F <in4mer@xxxxxxxxx> wrote:
> >
> > Normally I wouldn't mail the list about this kind of thing, but this one's
> > just too weird. Thoughts?
> It's counting a Nularg (0xa1). And it's not just a problem there; try e.g.
> "${(g<>)${baz}}" or "${(l<3><x>)${baz}}". Not sure where the best place to fix
> it is though
Right.
This, I think.
pws
diff --git a/Src/subst.c b/Src/subst.c
index c706b96..ff6750a 100644
--- a/Src/subst.c
+++ b/Src/subst.c
@@ -2405,6 +2405,8 @@ paramsubst(LinkList l, LinkNode n, char **str, int qt, int pf_flags,
aspar = 0;
} else if (aspar)
idbeg = val;
+ if (*val == Nularg)
+ ++val;
*s = sav;
/*
* This tests for the second double quote in an expression
Messages sorted by:
Reverse Date,
Date,
Thread,
Author