From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9541 invoked by alias); 9 Sep 2016 13:05:41 -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: 39255 Received: (qmail 25384 invoked from network); 9 Sep 2016 13:05:41 -0000 X-Qmail-Scanner-Diagnostics: from mailout3.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.13):SA:0(-1.1/5.0):. Processed in 0.775046 secs); 09 Sep 2016 13:05:41 -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-4e-57d2b38f3562 Date: Fri, 09 Sep 2016 14:05:16 +0100 From: Peter Stephenson To: zsh-workers@zsh.org Subject: Re: [PATCH] Use == in expressions instead of the deprecated = Message-id: <20160909140516.57af2b35@pwslap01u.europe.root.pri> In-reply-to: <20160908121628.78977edd@pwslap01u.europe.root.pri> References: <20160905212754.24998-1-tgyurci@gmail.com> <20160908093516.4fc2dd1e@pwslap01u.europe.root.pri> <20160908121628.78977edd@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+NgFjrHLMWRmVeSWpSXmKPExsVy+t/xy7r9my+FGzQ91rE42PyQyYHRY9XB D0wBjFFcNimpOZllqUX6dglcGT2ruxgLznFWPNxW1MD4i72LkZNDQsBE4tKGhVC2mMSFe+vZ uhi5OIQEljJKbF06mRUkISQwg0lixgsTiMRpRomWJ48ZIZwzjBKzLh5m6mLk4GARUJW49sEH pIFNwFBi6qbZjCC2iIC4xNm151lAbGEBN4kJHzeCbeMVsJd4dGAvmM0p4CCx9MVVFohlixgl nsz2BbH5BfQlrv79xARxnb3EzCtnGCF6BSV+TL4HVs8soCWxeVsTK4QtL7F5zVtmiDnqEjfu 7mafwCg8C0nLLCQts5C0LGBkXsUomlqaXFCclJ5rqFecmFtcmpeul5yfu4kREspfdjAuPmZ1 iFGAg1GJh/dB3sVwIdbEsuLK3EOMEhzMSiK8mpsuhQvxpiRWVqUW5ccXleakFh9ilOZgURLn nbvrfYiQQHpiSWp2ampBahFMlomDU6qBMX3CrchyJemAg05/DdiXm4SEex3QLetfpr7dbmV1 fdFa7emiVczPRe3kZM7Xzu9iedHFMW1pkEv07PebI34VcT2dV+MWdUdF8t9m8xfnDi8LfnPv uPk95Z2u655VHHeattasMO2TvNh5VUG3Zaunl97uWf+phf9mmH1XxAyrxZV3Ig+fMfRYocRS nJFoqMVcVJwIAJY8WL1hAgAA On Thu, 8 Sep 2016 12:16:28 +0100 Peter Stephenson wrote: > -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. It's sounding like the less of substance we say the better. pws diff --git a/Doc/Zsh/cond.yo b/Doc/Zsh/cond.yo index 3d369fb..474baa1 100644 --- a/Doc/Zsh/cond.yo +++ b/Doc/Zsh/cond.yo @@ -103,8 +103,10 @@ 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 two forms are exactly equivalent. The `tt(=)' form is +the traditional shell syntax (and hence the only one generally used +with the tt(test) and tt([) builtins); the `tt(==)' form provides +compatibility with other sorts of computer language. ) item(var(string) tt(!=) var(pattern))( true if var(string) does not match var(pattern).