From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29265 invoked by alias); 28 Mar 2015 22:39:57 -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: 34801 Received: (qmail 6688 invoked from network); 28 Mar 2015 22:39:46 -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=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,T_FSL_HELO_BARE_IP_2 autolearn=ham version=3.3.2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1427582011; bh=37p6EuLy1RNMZfuvhu2zQrXwchQ8wZfpF+FX7RcVncA=; h=From:To:In-Reply-To:References:Subject:Date; b=mIiDwxlK0K3K30G05hxD1isvv93kl7G+Ox4ShhLE7xLzo5Bx1szJ26WGh7TOjJK6k Y2M3WP+Uobft9QJJAHbUD4WhgKHJVIvzofLgNWbSKyyNiU32ba9mTYVnY9fgayMKe/ 9g1BZLYm7JOcU5/ADifh+Y0FNncWmibtr4UfpD2k= From: ZyX To: Bart Schaefer , "zsh-workers@zsh.org" In-Reply-To: <150328152430.ZM18574@torch.brasslantern.com> References: <55171842.7030505@gmx.com> <150328144428.ZM5583@torch.brasslantern.com> <55172355.80409@gmx.com> <150328152430.ZM18574@torch.brasslantern.com> Subject: Re: [[ is being treated as a pattern in the command/reserved word position. MIME-Version: 1.0 Message-Id: <6862591427582011@web25h.yandex.ru> X-Mailer: Yamail [ http://yandex.ru ] 5.0 Date: Sun, 29 Mar 2015 01:33:31 +0300 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=koi8-r 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.