zsh-workers
 help / color / mirror / code / Atom feed
From: Oliver Kiddle <okiddle@yahoo.co.uk>
To: Zsh workers <zsh-workers@zsh.org>
Subject: lexer issue
Date: Tue, 27 Mar 2018 13:05:38 +0200	[thread overview]
Message-ID: <5777.1522148738@thecus> (raw)

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.

Also notable is that if you press <ENTER> there are TWO error messages:

zsh: parse error near `+'
zsh: parse error near `$(( ((##h << 8) + ##...'

I've not had much success in trying to understand this. The magic-space
expansion takes place in doexpandhist() but I think it has something
more to do with the errflag values and the parser, neither of which I
have much understanding of.

Oliver


             reply	other threads:[~2018-03-27 11:15 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 [this message]
2018-03-27 11:56   ` Peter Stephenson
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=5777.1522148738@thecus \
    --to=okiddle@yahoo.co.uk \
    --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).