From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29533 invoked by alias); 8 Sep 2016 11:16:53 -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: 39237 Received: (qmail 71 invoked from network); 8 Sep 2016 11:16:53 -0000 X-Qmail-Scanner-Diagnostics: from mailout4.w1.samsung.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(210.118.77.14):SA:0(-1.1/5.0):. Processed in 1.192026 secs); 08 Sep 2016 11:16:53 -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: p.stephenson@samsung.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: none (ns1.primenet.com.au: domain at samsung.com does not designate permitted sender hosts) X-AuditID: cbfec7f4-f79cb6d000001359-30-57d1488f6ee4 Date: Thu, 08 Sep 2016 12:16:28 +0100 From: Peter Stephenson To: zsh-workers@zsh.org Subject: Re: [PATCH] Use == in expressions instead of the deprecated = Message-id: <20160908121628.78977edd@pwslap01u.europe.root.pri> In-reply-to: <20160908093516.4fc2dd1e@pwslap01u.europe.root.pri> References: <20160905212754.24998-1-tgyurci@gmail.com> <20160908093516.4fc2dd1e@pwslap01u.europe.root.pri> Organization: Samsung Cambridge Solution Centre X-Mailer: Claws Mail 3.7.9 (GTK+ 2.22.0; i386-redhat-linux-gnu) MIME-version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrPLMWRmVeSWpSXmKPExsVy+t/xK7r9HhfDDZp+GVgcbH7I5MDoserg B6YAxigum5TUnMyy1CJ9uwSujA3f/7AWTOSs6Nl9ga2B8TB7FyMnh4SAiUTf7D1MELaYxIV7 69m6GLk4hASWMkpcv7wOLCEkMINJ4nNrHIR9mlFibkMtRNEZRomml0vYQBIsAqoSd7pvgtls AoYSUzfNZgSxRQTEJc6uPc8CYgsLuElM+LgRbDOvgL3EzR83wGo4BRwkzp6aBrUsR2LW7/9g NfwC+hJX/36Cus5eYuaVM4wQvYISPybfA5vJLKAlsXlbEyuELS+xec1bZog56hI37u5mn8Ao PAtJyywkLbOQtCxgZF7FKJpamlxQnJSea6hXnJhbXJqXrpecn7uJERLMX3YwLj5mdYhRgINR iYeXQ/pCuBBrYllxZe4hRgkOZiURXjf3i+FCvCmJlVWpRfnxRaU5qcWHGKU5WJTEeefueh8i JJCeWJKanZpakFoEk2Xi4JRqYOQ+uTVceNLfb2taHps0mv9pf32EaUq6e7TS7w9V8o/4KrwT 178SeHOorczv+JOAtebnpieX7KxceXaHuvO+6K7sLYJFZbrhO+6Vv9961OFwpsrSF22zNs1m 3z/DYaZMYVi3deqsn5xfynQObZ4o/sq09MYePrbytMqvBZKqJrJhMzIeR9neZVViKc5INNRi LipOBACLzzEkYgIAAA== On Thu, 8 Sep 2016 09:35:16 +0100 Peter Stephenson wrote: > Actually, describing it as "deprecated" was always a bit of an > exaggeration --- it's standard shell syntax that isn't going anywhere. > There's no pressing reason not to change it in the documentation that I > can think of, but it's not clear if it's worth looking at. We should probably desribe it more like this, I suppose. I'm presuming this does describe the intention here. pws 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. ) item(var(string) tt(!=) var(pattern))( true if var(string) does not match var(pattern).