From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13914 invoked by alias); 9 Sep 2016 13:09:13 -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: 39256 Received: (qmail 5796 invoked from network); 9 Sep 2016 13:09:13 -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.13952 secs); 09 Sep 2016 13:09:13 -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:subject:message-id:mail-followup-to:references :mime-version:content-disposition:in-reply-to:user-agent; bh=esukZFUns9MTdu+RXTZX0tjqwWCe3uWUdRrB7zKFh3Y=; b=eJ0ZM8J25ADNtevAOR5YbpcMKQ+tGwbNYabwekGA/2odCSLkEBjmiD51yetfl6rt4P Tx6VRFwdtE7EGFJ2JOMT20vYq1m4YotVuITwgDVXB+P3lxIZ0qKqj75B6vyXkxWfZIT3 OOSTGIzV+KAKMD9Fijnrbfv8/AK4oh7Tr85Qw5r0+aUWeXXcSGq4mFCOTHq+2A2SjGy1 kvJQSesdvuRmReyDV+EddLyc5Qihmdi6zhRfwwSBdJKjVeLWRbD3Fgm0Px9uSuXYgS3c RZ0M6Z5g+QQeEQDXC0o2oOWEauzWaJjsW0t6beSm3HOfZ9bOoQfytV5nQXo5m73dObJP S7HA== 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:subject:message-id:mail-followup-to :references:mime-version:content-disposition:in-reply-to:user-agent; bh=esukZFUns9MTdu+RXTZX0tjqwWCe3uWUdRrB7zKFh3Y=; b=bqpoQePmOrk3EBb3OMIW6mz6SAHh0QokWFGgBCP3PP8YQqFbu8R6SsNBOTkqIGYFC+ cbdDfY9mWIiqEocpYwjafaBI723TTe1N9Yslj55TQx5pAqMFHiYZCZ3ZGHTAyYvJju3g Sj776cd48oB3kcgfxS+RDkNrtkO4TAA3/5SeQ6W1huceNc4kU6mNpdTRR/Tw4Jo7seN6 Xq6WeCFKoT6gG39NYYu0drynX/P1yd0965IQfWZYZ7s9uymY6MNEpEBumPT+Ii7z47+g 5/oYcbsZgu59ZHbyRWcZxz8NZqWk80C4mAL7X1Pc8CZiOYQxkIKmEp4xHpBWk3CqOmd1 iTCQ== X-Gm-Message-State: AE9vXwO07s7+jVp2+gBV8k8PxCuZDbd3lPdmZbwfyacZo9kaS6dfq/BJoeQAJdVyRaVAYw== X-Received: by 10.28.22.18 with SMTP id 18mr1841238wmw.52.1473411153994; Fri, 09 Sep 2016 01:52:33 -0700 (PDT) Date: Fri, 9 Sep 2016 09:52:31 +0100 From: Stephane Chazelas To: Peter Stephenson , zsh-workers@zsh.org Subject: Re: [PATCH] Use == in expressions instead of the deprecated = Message-ID: <20160909085231.GA9717@chaz.gmail.com> Mail-Followup-To: Peter Stephenson , 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160908143128.GA14933@chaz.gmail.com> User-Agent: Mutt/1.5.21 (2010-09-15) 2016-09-08 15:31:28 +0100, Stephane Chazelas: [...] > 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). [...] Sorry, bad memory. Though there was some opposition, the "==" proposal was not rejected: http://austingroupbugs.net/view.php?id=375 was what I was vaguely recalling. It's still possible that the next major POSIX spec will have [ == ] and maybe even [[ ]]. You guys may want to comment on the latest proposal there: http://austingroupbugs.net/file_download.php?file_id=31&type=bug as it would make zsh non-conformant. In particular, it proposes specifying [[ =~ ]] the ksh/bash way, that is where quoting escapes regexp operators ( [[ a =~ "." ]] returns false) and [[ < ]] required to use collation. -- Stephane