Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [[ and [
On Wed, Mar 07, 2012, Peter Stephenson wrote about "Re: [[ and [":
> On Wed, 7 Mar 2012 10:52:36 +0200
> Nadav Har'El <nyh@xxxxxxxxxxxxxxxxxxx> wrote:
> > The zsh manual does not state that "-eq" and the rest are obsolete (in
> > Conditional Expressions), but maybe it should:
>...
>
> There's no gain in us getting rid of them anyway, so declaring them
> obsolete is confusing people (we've had this with similar features
> there's no point in removing).
Well, I agree that -eq and friends will never be removed - they existed for
at least 33 years now (since 7th edition Unix), so let them stay another 30
years ;-)). But people who read the manual can be told that there is a
newer alternative, namely ((. Also, like I said, zsh's inspiration for
the '[[' command, ksh, already declared 20 years ago that these options
are obsolete.
Anyway, it was you who said these -eq et al. were confusing :-)
--
Nadav Har'El | Wednesday, Mar 7 2012,
nyh@xxxxxxxxxxxxxxxxxxx |-----------------------------------------
Phone +972-523-790466, ICQ 13349191 |You have the right to remain silent.
http://nadav.harel.org.il |Anything you say will be used against you.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author