From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13976 invoked by alias); 8 Sep 2016 16:40:23 -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: 39243 Received: (qmail 687 invoked from network); 8 Sep 2016 16:40:23 -0000 X-Qmail-Scanner-Diagnostics: from mail-qk0-f196.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(209.85.220.196):SA:0(0.0/5.0):. Processed in 1.031438 secs); 08 Sep 2016 16:40:23 -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: mikachu@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 209.85.220.196 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:from:date:message-id:subject:to :cc; bh=LfvhRS+hwQpchPPjquE+WUQyp7R2olQxtPSGVn9QxHQ=; b=f2sWW9iPygsD6Kgr4c05qy+UJtJ80BmKSJlaNY4R3Ladaw+Kz8a/okAhjPSS8JTE97 T5crtf2LflM1sNgyZ9sXqF5Y7glY7ZjuZScphuODykBkvJexMEmQeqG1SIPYZx/WEr95 n0SFDf+5PUasR9UlJbDMcbM7ZwAISDQpIuuRowJQ86QrWzbfKzrc5MYT9lPuHYUyAZSG ZbNY5x8NkorOeJXW108n6KXfTWtdp3hHSgab6/v42xb36ybNgk/dd4PDFTKmV7R7yO1D PkkmUjfMcnPvke869gyZlycDUy/60UKC0ra7IfjyWYpYxLZIeyq0rJKBFXOeHE/vqDoZ jINQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=LfvhRS+hwQpchPPjquE+WUQyp7R2olQxtPSGVn9QxHQ=; b=JPlZPDWlK4ysPG1Nne0KJoKRgzw11I5j95GGaucxb1ZWyV6liLO72XcsMmHdnXeYqn J5ToLwFoNzNC+Qvgl4SeWZECx7x6ZhYTBYlGtCLZeZkNyCBu+1FffQiSE9wmObLX3lAx M/j45Kd4hQ3xRSe/bfsNGMJt3jv7WRbfu4/ugg418QOxsRPBP546c4VMvf75QnFa8r3e /yNwq010xyNjuFXHZLqedmlNuPRX86LtwE8OjKThTeeaKD6B46yU2GDWHpFrgh47NoC0 Chv03iEB13LquFcaVdTNhBja/LFt4BJLp1qOZDHfkJMyMjPHAsIczZPweMxMGq3mEp1E XtWA== X-Gm-Message-State: AE9vXwOpk4WLMIMilxkp8/BwUFfQInSujvd2GIz84fEqtAhS4IxzagtstXjMJBizsEGdnMM+Jptl1VHV1fVVAQ== X-Received: by 10.55.102.15 with SMTP id a15mr748111qkc.90.1473352796478; Thu, 08 Sep 2016 09:39:56 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <20160908161410.46897ece@pwslap01u.europe.root.pri> References: <20160905212754.24998-1-tgyurci@gmail.com> <20160908093516.4fc2dd1e@pwslap01u.europe.root.pri> <20160908121628.78977edd@pwslap01u.europe.root.pri> <20160908143128.GA14933@chaz.gmail.com> <20160908161410.46897ece@pwslap01u.europe.root.pri> From: Mikael Magnusson Date: Thu, 8 Sep 2016 18:39:55 +0200 Message-ID: Subject: Re: [PATCH] Use == in expressions instead of the deprecated = To: Peter Stephenson Cc: zsh workers Content-Type: text/plain; charset=UTF-8 On Thu, Sep 8, 2016 at 5:14 PM, Peter Stephenson wrote: > On Thu, 08 Sep 2016 15:31:28 +0100 > Stephane Chazelas wrote: >> 2016-09-08 12:16:28 +0100, Peter Stephenson: >> [...] >> > diff --git a/Doc/Zsh/cond.yo b/Doc/Zsh/cond.yo >> > index 3d369fb..6fcf3bd 100644 >> > --- a/Doc/Zsh/cond.yo >> > +++ b/Doc/Zsh/cond.yo >> > @@ -103,8 +103,8 @@ true if var(file1) and var(file2) exist and refer to the same file. >> > xitem(var(string) tt(=) var(pattern)) >> > item(var(string) tt(==) var(pattern))( >> > true if var(string) matches var(pattern). >> > -The `tt(==)' form is the preferred one. The `tt(=)' form is for >> > -backward compatibility and should be considered obsolete. >> > +The `tt(==)' form is the preferred one for clarity in new shell code >> > +as it more closely resembles other languages. >> [...] >> >> ksh93 also makes "==" obsolete in [[...]]. "==" is still not >> POSIX (and likely not going to be soon as requests to add it >> have been rejected (IIRC)) for the "test"/"[" utility (or expr). POSIX doesn't have [[...]] so what it says isn't really relevant. [ a == b ] doesn't work in zsh by default either, you have to use either [ a = b ] or [ a \== b ] and obviously the latter is pretty ridiculous. :) -- Mikael Magnusson