From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3877 invoked by alias); 7 Mar 2011 09:13:09 -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: 15835 Received: (qmail 11211 invoked from network); 7 Mar 2011 09:13:07 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 Received-SPF: pass (ns1.primenet.com.au: SPF record at _spf.google.com designates 209.85.212.43 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=jG1/s4JoOx4VtlUeRsndVaAHF07w5arqPl/38bdLLRc=; b=ewHI6KbSUPVh6Yq7MCS2Kty4DMpw9yptSIwYp0SAN9ciPQRWfv6SLrnKwalACZ4WKc mog0mPU1D3NM8ZVGb82mOODDKFBaTdORfjT1Avd9BETLKwxGUSgnsKbDUuuBgH32WIDi yLPZnHkZGOL8cYMO6H1TfZNCTakmdHKAknda8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=SoGfuPmm+wm/80L5egnHszqUl0EPirMw5ooHX5YFKEHaPudI5fw00OzxpkOwo58lNi bUn2WE1faFMscG6hT2rOR0z6o2js08mTUTwc9NfJYehR9qAwEzNiMX7v5SHa0WJP2F2Y x5E1dx7LG5ueJOUv7B9wybMEbNCd7INMKDZts= MIME-Version: 1.0 In-Reply-To: References: Date: Mon, 7 Mar 2011 10:13:01 +0100 Message-ID: Subject: Re: string equal problem From: Mikael Magnusson To: Lyre <4179e1@gmail.com> Cc: zsh-users@zsh.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 7 March 2011 10:04, Lyre <4179e1@gmail.com> wrote: > To my surprise=EF=BC=8Cthe following statment: > > if [ "abc" =3D=3D "def" ]; then echo y; else echo n; fi > > doesn't work, it says "zsh: =3D not found". you want either [ "abc" =3D "def" ] or [[ "abc" =3D=3D "def" ]] (=3D will w= ork in [[]] too). --=20 Mikael Magnusson