From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh-workers@zsh.org
Subject: Re: [BUG] (z)-flag interrupts if $() in input
Date: Sun, 30 Oct 2016 13:14:59 -0700 [thread overview]
Message-ID: <161030131459.ZM16922@torch.brasslantern.com> (raw)
In-Reply-To: <161030110455.ZM14677@torch.brasslantern.com>
On Oct 30, 11:04am, Bart Schaefer wrote:
}
} torch% a='x $(|||) y'
} torch% print -rl -- ${(z)a}
} x
} $(||
} torch%
A little progress but not much.
If we look at this:
torch% echo x $(|||) y
zsh: parse error near `||'
zsh: parse error near `$(|||) y'
Note that we have one parse error inside $(...) and then another for
the whole expression.
It's the inner parse error that kills (z). gettokstr() returns LEXERR
to bufferwords() and it stops building the array. But ... even if I
force the token to STRING there to make the loop continue, the next
ctxlex() returns ENDINPUT with empty tokstr, so the result isn't changed.
next prev parent reply other threads:[~2016-10-30 20:14 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-10-30 6:33 Sebastian Gniazdowski
2016-10-30 15:25 ` Daniel Shahaf
2016-10-30 17:09 ` Peter Stephenson
2016-10-30 18:04 ` Bart Schaefer
2016-10-30 20:14 ` Bart Schaefer [this message]
2016-11-03 10:23 ` Peter Stephenson
2016-10-30 17:55 ` Bart Schaefer
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=161030131459.ZM16922@torch.brasslantern.com \
--to=schaefer@brasslantern.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).