From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9973 invoked by alias); 9 Sep 2016 19:01:02 -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: 39259 Received: (qmail 26014 invoked from network); 9 Sep 2016 19:01:02 -0000 X-Qmail-Scanner-Diagnostics: from mail-wm0-f49.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(74.125.82.49):SA:0(0.0/5.0):. Processed in 0.490262 secs); 09 Sep 2016 19:01:02 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=FREEMAIL_FROM,SPF_PASS, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.1 X-Envelope-From: stephane.chazelas@gmail.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at _netblocks.google.com designates 74.125.82.49 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:mail-followup-to:references :mime-version:content-disposition:in-reply-to:user-agent; bh=kUzlayFo5RPm2nhM7e5Lovhyq8O1NxG+XMBq2nuDHT0=; b=SEVIyWyvfufneEVsswfsvGrLH8fRsbBnJpHUAV/YKnnvcV8cnp7YbLMjvHnFSAUzj3 b1l50wCowsuusU0fsYRaWU4E9dNKxvvUiHOf+s3blk2EdCUPjdkvnsRtmP/1UnWX7Teu 7/knT62c6bBNyNDRCoEl7WrO30e9xBnSxt9FiHdGwZ9h1CY794qbPTwZDudYtY4II2oJ ilv0UO3/on7LKPFHmGeHncWd2MerCyXddJKLOqiT1wMVHbm+lUlCwtLOIlbqXH3f4rbT grAawZzRp2VGxzaKm0r22F6cQddDGVmbXz00lYRzTTBcU53w8YI8DXIAV7GJvda0c9ZY /GCQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:message-id :mail-followup-to:references:mime-version:content-disposition :in-reply-to:user-agent; bh=kUzlayFo5RPm2nhM7e5Lovhyq8O1NxG+XMBq2nuDHT0=; b=bmcS1EHKYQvvVjhNztO0Ijlhotnwe4H4bqBqLXBOkQUM4fKwBGl3AzuS1Rm4cGRdp+ 0d5K3ID67WZ+h6OAbRKtOSw3hmSSDrBzODGBqxM9xxqRTjf6jsLMnOBuu1fEadXuo8E4 WT4WAs/u4LtuoGrEAbObHYlZmxYKwEQzZW4xNgyD2fgioCxdfiQwmM7y9Jt+LZKVFvoL +fLa3OlOIJdMoD+tz453gJxzvYqg8vPW0zn0f3HtOkgYNSNv3jpDmyCwm7YgjRk/moGx +ProXqGXSjB+nj8Oz+IuOLE0OgoDt1EYjdMHoMi/23zMYJAPC8whLdZH+4s+e4wWGqBh WYaQ== X-Gm-Message-State: AE9vXwOybPHQ0cDTYec37HDgiBzhxjkJOi+JBFzmyFOFdjM18vbQCipuLPnofOH2MufNmQ== X-Received: by 10.28.57.4 with SMTP id g4mr4220070wma.75.1473447259573; Fri, 09 Sep 2016 11:54:19 -0700 (PDT) Date: Fri, 9 Sep 2016 19:54:14 +0100 From: Stephane Chazelas To: Christian Neukirchen Cc: zsh-workers@zsh.org Subject: Re: [PATCH] Use == in expressions instead of the deprecated = Message-ID: <20160909185414.GC9717@chaz.gmail.com> Mail-Followup-To: Christian Neukirchen , zsh-workers@zsh.org References: <20160905212754.24998-1-tgyurci@gmail.com> <20160908093516.4fc2dd1e@pwslap01u.europe.root.pri> <20160908121628.78977edd@pwslap01u.europe.root.pri> <20160908143128.GA14933@chaz.gmail.com> <87twdpaty0.fsf@juno.home.vuxu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87twdpaty0.fsf@juno.home.vuxu.org> User-Agent: Mutt/1.5.21 (2010-09-15) 2016-09-09 19:01:27 +0200, Christian Neukirchen: [...] > >> -The `tt(==)' form is the preferred one. The `tt(=)' form is for > >> -backward compatibility and should be considered obsolete. [...] > > ksh93 also makes "==" obsolete in [[...]]. > > My ksh93 (ksh-2012.08.01) man page says: > > Conditional Expressions. > A conditional expression is used with the [[ compound command to test > attributes of files and to compare strings. > ... > string == pattern > True, if string matches pattern. Any part of pattern can be > quoted to cause it to be matched as a string. With a successful > match to a pattern, the .sh.match array variable will contain > the match and sub-pattern matches. > string = pattern > Same as == above, but is obsolete. [...] Sorry, that's what I meant and I ended up saying the opposite. ksh93 also (like zsh) makes "=" obsolete. I assumed the zsh manual was making = obsolete because ksh did as well (that [[...]] construct comes from ksh). -- Stephane