Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: [[ and [



On 7 March 2012 10:02, Nadav Har'El <nyh@xxxxxxxxxxxxxxxxxxx> 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



Messages sorted by: Reverse Date, Date, Thread, Author