Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Comment behaviour
- X-seq: zsh-workers 41498
- From: Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>
- To: "zsh-workers@xxxxxxx" <zsh-workers@xxxxxxx>
- Subject: Re: Comment behaviour
- Date: Sun, 6 Aug 2017 20:17:56 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ntlworld.com; s=meg.feb2017; t=1502047077; bh=lu34SoOTXY+NEAY0N7L0HezvhEELfYQDOIkVWQJAegU=; h=Date:From:To:Subject:In-Reply-To:References; b=5VOf/fC5/h1grLPd2odJYMMOHxAXAK0sleno61p6djXGsN6mb+CfcDCllaovnznZd uT44SLqh8c9VevCneOH2mPW2uh6z71URemWDKoiOvE8KyzQKZmeV5nd53y6pE328oX 4T4ooyfRBd8E4YLWxtDAcjrGNjD1W/p930lBCrpc6WZUXEifR77Q1YlnSOQJCBbeMp U3dLf+mndZB9VfESdsRe9C/ZwSkWDbfTSIj/yvs6acgeQ9BO66ULg1BdZys+zuHDUv LTLCEbDbHEzE6kMzadeaOlAAPvmwP3WbYJYBWOl+zQ/NAvQ1d82gro5EbqWK0ns1bm aFy1yQiXEzIbw==
- In-reply-to: <CAH+w=7aw7RGKHfD5+YtwErJ3MqLh1bdLVHda3tF-XJnZs9PX+A@mail.gmail.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <CA+rB6G+=EDHGU0_Jw8trcixGTpoV5y5im22a_5xhLX_qWdp17A@mail.gmail.com> <20170806191531.15dfad23@ntlworld.com> <CAH+w=7aw7RGKHfD5+YtwErJ3MqLh1bdLVHda3tF-XJnZs9PX+A@mail.gmail.com>
On Sun, 6 Aug 2017 11:59:53 -0700
Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> On Sun, Aug 6, 2017 at 11:15 AM, Peter Stephenson
> <p.w.stephenson@xxxxxxxxxxxx> wrote:
> >
> > I'll have a closer look after the release if this particular case can be
> > treated differently, however --- it's clearly not useful to have it
> > treated as a parse error if it's easy to do it otherwise.
>
> It's a parse error because "}#" is not a "}" token and the script
> _ends_ after that, so no matching "}" is ever found. I don't think
> you want to parse "}#" as two separate tokens.
The question arises in this particular case because it's in command
position so only certain special syntax is valid. But it seems like
the following is currently valid, if stupid:
% alias "}#"='echo "Hello"'
% {
cursh> }#
cursh> }
Hello
so we can't change it without repercussions.
pws
Messages sorted by:
Reverse Date,
Date,
Thread,
Author