Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: lexer issue
- X-seq: zsh-workers 42543
- From: Peter Stephenson <p.stephenson@xxxxxxxxxxx>
- To: Zsh workers <zsh-workers@xxxxxxx>
- Subject: Re: lexer issue
- Date: Tue, 27 Mar 2018 12:56:41 +0100
- Cms-type: 201P
- Dkim-filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20180327115645euoutp01716f98081d03d58fe1aa9dffeef31d53~fxQCD1UZ02717127171euoutp01X
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1522151805; bh=UCUVOPzrdt5so5nKyOfjljzXCK9yZB8VzJRQaA0oKX0=; h=Date:From:To:Subject:In-reply-to:References:From; b=VXMSKvCyl4/Sonpp1GupPZEGIST1wyhJKd+E3aNM6PKbkjEcpPhFXKqBh4GSKvNKF oKETOeJ4yZ8O7bWn6KCFVPfsu78QEjTsigKFenLEaYOiPeDxI2leQx7VztmW2J8aXq d9tqa0UoUGhrlx42eD+s6lsURxYzNDm9cALL/XGA=
- In-reply-to: <5777.1522148738@thecus>
- 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
- Organization: SCSC
- References: <CGME20180327111617epcas3p264cdae264e676ace2503d20bd919ea5e@epcas3p2.samsung.com> <5777.1522148738@thecus>
On Tue, 27 Mar 2018 13:05:38 +0200
Oliver Kiddle <okiddle@xxxxxxxxxxx> wrote:
> Does anyone know what may be causing this:
>
> echo $(( ((##h << 8) + ##e) << 8)+<SPACE>
> → echo $(( ((##h << 8) +
>
> This is with space bound to magic-space.
This will be to do with the fact that you've closed one of the
parentheses of the arithmetic expression, but not the other, so the next
expansion has decided it's a command substitution. In that, the ##e is
a comment, so gets stripped. In fact, I'm not seeing the effect you
are, which may be down to options, or to the fact that the way we handle
interactive comments changed recently, or a combination.
pws
Messages sorted by:
Reverse Date,
Date,
Thread,
Author