From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15343 invoked by alias); 7 Mar 2012 09:05:48 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 16855 Received: (qmail 18782 invoked from network); 7 Mar 2012 09:05:47 -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.6 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED,RCVD_IN_DNSWL_LOW, T_DKIM_INVALID autolearn=no version=3.3.2 Received-SPF: pass (ns1.primenet.com.au: SPF record at _spf.google.com designates 209.85.216.171 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=WwsEY3mfHitFl0/Vw136x1+rcpm85q1SG+dFd+H95mQ=; b=wJe3Fdms3hwiGeHpYF1a0nouz8e7frK6KK9wxO64yslRZ2fC4lIoIk2QFg/LhHuVkR TAYkF/c8373RQa05qRGnIHpju9qe46XFab46tiliJ+g7pcRVOC6ig6zJysm12L6B7D0v wUA82hKcvfjDV9Fxn0CMJZr0+AE7WmMB+pS6w2ejf4V7HvZm1kCoEO5DZkljufrOfRH5 xYY5aAb7d991TWaqB2ydqqRTCSm0qP7juVJ+OT+dKtWbo6+Ezpr+D4q8QXkzLAlvSsie zu0hQlwWMh+ATlY41jmkh/bXOJ5oFF7bhgJIBbbsG2cEXJ1CGmEaIUrnBOB5rDljnehf Qv2w== MIME-Version: 1.0 In-Reply-To: <20120307090216.GD15125@fermat.math.technion.ac.il> References: <4F52D510.6000002@sergio.spb.ru> <120303202448.ZM21278@torch.brasslantern.com> <4F555B0B.1050401@sergio.spb.ru> <120305220555.ZM27709@torch.brasslantern.com> <4F55EF85.3050809@sergio.spb.ru> <20120306113532.789859ca@pwslap01u.europe.root.pri> <20120306114404.359e1c9d@pwslap01u.europe.root.pri> <20120307090216.GD15125@fermat.math.technion.ac.il> Date: Wed, 7 Mar 2012 10:05:42 +0100 Message-ID: Subject: Re: [[ and [ From: Mikael Magnusson To: "Nadav Har'El" Cc: Peter Stephenson , zsh-users@zsh.org Content-Type: text/plain; charset=UTF-8 On 7 March 2012 10:02, Nadav Har'El wrote: > On Tue, Mar 06, 2012, Mikael Magnusson wrote about "Re: [[ and [": >> Incidentally, this is probably the most confusing error message ever, >> % [ $foo == "" ] >> zsh: = not found > > I see something slightly different. On zsh 4.3.15, with unset $foo, I > get: > > $ [ $foo == "" ] > zsh: parse error: condition expected: == > > Which indeed is not very clear, but arguably not "the most confusing > error message ever" ;-) You need to not have done unsetopt equals to see the confusing one :). -- Mikael Magnusson