From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23880 invoked by alias); 9 Sep 2016 12:11:57 -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: 39254 Received: (qmail 23145 invoked from network); 9 Sep 2016 12:11:57 -0000 X-Qmail-Scanner-Diagnostics: from ioooi.vinc17.net 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(92.243.22.117):SA:0(-1.1/5.0):. Processed in 0.125403 secs); 09 Sep 2016 12:11:57 -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=-1.1 required=5.0 tests=RP_MATCHES_RCVD autolearn=unavailable autolearn_force=no version=3.4.1 X-Envelope-From: vincent@vinc17.net X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: none (ns1.primenet.com.au: domain at vinc17.net does not designate permitted sender hosts) Date: Fri, 9 Sep 2016 14:03:13 +0200 From: Vincent Lefevre To: zsh-workers@zsh.org Subject: Re: [PATCH] Use == in expressions instead of the deprecated = Message-ID: <20160909120313.GB18696@zira.vinc17.org> Mail-Followup-To: 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> <20160908161410.46897ece@pwslap01u.europe.root.pri> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20160908161410.46897ece@pwslap01u.europe.root.pri> X-Mailer-Info: https://www.vinc17.net/mutt/ User-Agent: Mutt/1.7.0-6790-vl-r91193 (2016-09-07) On 2016-09-08 16:14:10 +0100, Peter Stephenson wrote: > So possibly even saying == is preferred is going a bit far, though > obviously there's no reason ever to remove it... I don't mind what is preferred, but zsh should be consistent, and currently it isn't: In the man pages: string = pattern string == pattern true if string matches pattern. The `==' form is the preferred one. The `=' form is for backward compatibility and should be considered obsolete. But "==" is converted to "=": zira% f() { [[ a == a ]] } zira% which f f () { [[ a = a ]] } -- Vincent Lefèvre - Web: 100% accessible validated (X)HTML - Blog: Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)