From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24238 invoked by alias); 21 May 2015 09:35:04 -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: 35250 Received: (qmail 27015 invoked from network); 21 May 2015 09:35:02 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS autolearn=ham autolearn_force=no version=3.4.0 X-AuditID: cbfec7f4-f79c56d0000012ee-97-555da6c38361 Date: Thu, 21 May 2015 10:34:56 +0100 From: Peter Stephenson To: Zsh Hackers' List Subject: Re: PATCH: get off my case Message-id: <20150521103456.7b82f847@pwslap01u.europe.root.pri> In-reply-to: <20150521095419.168809c8@pwslap01u.europe.root.pri> References: <20150521095419.168809c8@pwslap01u.europe.root.pri> Organization: Samsung Cambridge Solution Centre X-Mailer: Claws Mail 3.7.9 (GTK+ 2.22.0; i386-redhat-linux-gnu) MIME-version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrILMWRmVeSWpSXmKPExsVy+t/xq7qHl8WGGuz4L29xsPkhkwOjx6qD H5gCGKO4bFJSczLLUov07RK4MhpmbGIq+MNd8WLlGpYGxg+cXYycHBICJhJTXl9hhbDFJC7c W8/WxcjFISSwlFHi/Id7UM4MJomPi86wQjjbGCUanm5jA2lhEVCVuHv4CSOIzSZgKDF102wg m4NDREBbov2jGIgpLKAs0f7dHaSCV8Be4vynLywgNqeAg8Ts9Z+ZQUqEgOKnH3GDhPkF9CWu /v3EBHGPvcTMK2cYIVoFJX5MvgfWyiygJbF5WxMrhC0vsXnNW2YQW0hAXeLG3d3sExiFZiFp mYWkZRaSlgWMzKsYRVNLkwuKk9JzDfWKE3OLS/PS9ZLzczcxQgL2yw7GxcesDjEKcDAq8fBy qMeGCrEmlhVX5h5ilOBgVhLhzYkGCvGmJFZWpRblxxeV5qQWH2KU5mBREuedu+t9iJBAemJJ anZqakFqEUyWiYNTqoGx/b3IvlsP/riEqZuuzFzQbm722NNO74628oayNaGtDNlsHcdWv1zY 03Ew1VPi/I/3P13vmW+7fSHFN2Hmgf6vJneyXWN1pghcer7LtksixWW2ts/lQhf3Gd+K+Rd/ kI+/s9bt1sObK7/ufXrU63x23RzRb78s4gT/W6ZX3fn3fGmIjr3lspcflViKMxINtZiLihMB 9aSDZlQCAAA= Fix the documentation. pws diff --git a/Doc/Zsh/grammar.yo b/Doc/Zsh/grammar.yo index a3f4927..4476fc3 100644 --- a/Doc/Zsh/grammar.yo +++ b/Doc/Zsh/grammar.yo @@ -239,11 +239,17 @@ item(tt(case) var(word) tt(in) [ [tt(LPAR())] var(pattern) [ tt(|) var(pattern) Execute the var(list) associated with the first var(pattern) that matches var(word), if any. The form of the patterns is the same as that used for filename generation. See -noderef(Filename Generation). Note further that the whole -pattern with alternatives is treated by the shell as equivalent -to a group of patterns within parentheses, even though in -the tt(case) syntax whitespace may appear about the parentheses and the -vertical bar. +noderef(Filename Generation). + +Note further that, unless the tt(SH_GLOB) option is set, the whole +pattern with alternatives is treated by the shell as equivalent to a +group of patterns within parentheses, although white space may appear +about the parentheses and the vertical bar and will be stripped from the +pattern at those points. White space may appear elsewhere in the +pattern; this is not stripped. If the tt(SH_GLOB) option is set, so +that an opening parenthesis can be unambiguously treated as part of the +case syntax, the expression is parsed into separate words and these are +treated as strict alternatives (as in other shells). If the var(list) that is executed is terminated with tt(;&) rather than tt(;;), the following list is also executed. The rule for