Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: [PATCH] Use == in expressions instead of the deprecated =



On Fri, 09 Sep 2016 09:52:31 +0100
Stephane Chazelas <stephane.chazelas@xxxxxxxxx> wrote:
> 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.

If POSIX-like shells already do it that way, the best we could offer
would probably be another kludge-up option anyway.  Not specifying it,
the only other option, isn't really doing anyone any favours in the end.

pws



Messages sorted by: Reverse Date, Date, Thread, Author