From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27173 invoked by alias); 28 Mar 2015 22:45:21 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 34803 Received: (qmail 141 invoked from network); 28 Mar 2015 22:45:19 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 X-Originating-IP: [80.3.228.158] X-Spam: 0 X-Authority: v=2.1 cv=Ku/D2AmN c=1 sm=1 tr=0 a=P+FLVI8RzFchTbbqTxIDRw==:117 a=P+FLVI8RzFchTbbqTxIDRw==:17 a=kj9zAlcOel0A:10 a=NLZqzBF-AAAA:8 a=q2GGsy2AAAAA:8 a=omssir95QF0ZIHBLqhUA:9 a=CjuIK1q_8ugA:10 Date: Sat, 28 Mar 2015 22:39:43 +0000 From: Peter Stephenson To: zsh-workers@zsh.org Subject: Re: Remind me about oddball reserved words Message-ID: <20150328223943.55015a92@ntlworld.com> In-Reply-To: <150328145851.ZM5613@torch.brasslantern.com> References: <150328145851.ZM5613@torch.brasslantern.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Sat, 28 Mar 2015 14:58:51 -0700 Bart Schaefer 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