From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15882 invoked by alias); 28 Mar 2015 23:07:14 -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: 34807 Received: (qmail 23399 invoked from network); 28 Mar 2015 23:07:13 -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.5 required=5.0 tests=BAYES_00,BODY_URI_ONLY, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE autolearn=no version=3.3.2 Message-ID: <55173419.6070103@gmx.com> Date: Sat, 28 Mar 2015 19:07:05 -0400 From: Eric Cook User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: zsh-workers@zsh.org Subject: Re: [[ is being treated as a pattern in the command/reserved word position. References: <55171842.7030505@gmx.com> <150328144428.ZM5583@torch.brasslantern.com> <55172355.80409@gmx.com> <150328152430.ZM18574@torch.brasslantern.com> <6862591427582011@web25h.yandex.ru> In-Reply-To: <6862591427582011@web25h.yandex.ru> Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:5qrQZQvlLIIE4r38tJP/jEO27TSyuRwKszi8zkhZnjTUFzJWX11 /4TA2YsmIEdjTQLsni9JUta+vHbczd/O4TP4ngv/iKxu2Pm3+kasH0ej4mfqJvkQhqJ5BMW i9mJfTF6fQKnbBEGtDuBrQQ6gG2dxdYpN1v1U0y/v0jW0hhBJ/MVV22E894o1EsCpYk+gCR DkfyXRD7eDQavJ7RepoOw== X-UI-Out-Filterresults: notjunk:1; On 03/28/2015 06:33 PM, ZyX wrote: > 29.03.2015, 01:25, "Bart Schaefer" : >> On Mar 28, 5:55pm, Eric Cook wrote: >> } >> } % print $ZSH_PATCHLEVEL; emulate sh -c '[[ a == a ]]' >> } zsh-5.0.7-362-gab40656 >> } zsh: command not found: [[ >> } >> } Did that behavior change? >> >> Aha. That makes more sense. >> >> The '[[' reserved word is handled a special kind of built-in alias [*] >> and the change to POSIX_ALIASES handling caused that to be disabled. >> >> This will take a bit of thought. >> >> [*] Not literally, but the alias expansion code is where '[[' is noted >> and the lexer changed into "parsing a conditional" state. > I would say that this is actually an expected behaviour: `posh -c '[[ a == a ]]'` will show `posh: [[: not found` because `[[` is not in POSIX. Similar error will be shown by dash. Nor is it disallowed by POSIXand it used to work, the bug report is still valid.