Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [PATCH] Use == in expressions instead of the deprecated =
- X-seq: zsh-workers 39256
- From: Stephane Chazelas <stephane.chazelas@xxxxxxxxx>
- To: Peter Stephenson <p.stephenson@xxxxxxxxxxx>, zsh-workers@xxxxxxx
- Subject: Re: [PATCH] Use == in expressions instead of the deprecated =
- Date: Fri, 9 Sep 2016 09:52:31 +0100
- 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==
- In-reply-to: <20160908143128.GA14933@chaz.gmail.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mail-followup-to: Peter Stephenson <p.stephenson@xxxxxxxxxxx>, zsh-workers@xxxxxxx
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <20160905212754.24998-1-tgyurci@gmail.com> <20160908093516.4fc2dd1e@pwslap01u.europe.root.pri> <20160908121628.78977edd@pwslap01u.europe.root.pri> <20160908143128.GA14933@chaz.gmail.com>
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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author