zsh-workers
 help / color / mirror / code / Atom feed
From: Peter Stephenson <p.stephenson@samsung.com>
To: Zsh workers <zsh-workers@zsh.org>
Subject: Re: lexer issue
Date: Tue, 27 Mar 2018 12:56:41 +0100	[thread overview]
Message-ID: <20180327125641.3df8e5a1@camnpupstephen.cam.scsc.local> (raw)
In-Reply-To: <5777.1522148738@thecus>

On Tue, 27 Mar 2018 13:05:38 +0200
Oliver Kiddle <okiddle@yahoo.co.uk> 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


  reply	other threads:[~2018-03-27 11:56 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CGME20180327111617epcas3p264cdae264e676ace2503d20bd919ea5e@epcas3p2.samsung.com>
2018-03-27 11:05 ` Oliver Kiddle
2018-03-27 11:56   ` Peter Stephenson [this message]
2018-03-28  9:57     ` Oliver Kiddle
2018-03-31 17:17       ` Peter Stephenson
2018-04-04 17:10         ` Peter Stephenson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180327125641.3df8e5a1@camnpupstephen.cam.scsc.local \
    --to=p.stephenson@samsung.com \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).