From: Peter Stephenson <p.w.stephenson@ntlworld.com>
To: zsh-workers@zsh.org
Subject: Re: Remind me about oddball reserved words
Date: Sat, 28 Mar 2015 22:39:43 +0000 [thread overview]
Message-ID: <20150328223943.55015a92@ntlworld.com> (raw)
In-Reply-To: <150328145851.ZM5613@torch.brasslantern.com>
On Sat, 28 Mar 2015 14:58:51 -0700
Bart Schaefer <schaefer@brasslantern.com> wrote:
> Close brace is recognized as a reserved word in command position? I've
> entirely forgotten why and would like to be reminded.
I would guess it's to do with the fact that with IGNORE_BRACES (or
IGNORE_CLOSE_BRACES) set, which is old sh style, "}" needs to be in
command position. I suspect it's not needed in native mode.
> Also, why close brace and not close-double-bracket?
There's no case where ']]' needs to be special in command position, only
at the end of a specially parsed condition.
pws
next prev parent reply other threads:[~2015-03-28 22:45 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-28 21:58 Bart Schaefer
2015-03-28 22:39 ` Peter Stephenson [this message]
2015-03-28 23:04 ` 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=20150328223943.55015a92@ntlworld.com \
--to=p.w.stephenson@ntlworld.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).