Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: possible 'is-at-least' bug?
- X-seq: zsh-users 21056
- From: Vincent Lefevre <vincent@xxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: possible 'is-at-least' bug?
- Date: Mon, 7 Dec 2015 11:25:25 +0100
- In-reply-to: <CAB2RFrTcUWZZRbWqCT+7mZxUp+A5eb=psc46oDXSqrCcPXGVOQ@mail.gmail.com>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mail-followup-to: zsh-users@xxxxxxx
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <CADjGqHue=fEzyoayraCEZtqzuExyJiGuMjUDHKYtEOu47w6bew@mail.gmail.com> <CAB2RFrTcUWZZRbWqCT+7mZxUp+A5eb=psc46oDXSqrCcPXGVOQ@mail.gmail.com>
On 2015-12-05 01:29:46 -0500, Benjamin R. Haskell wrote:
> `is-at-least` isn't intended to be that general. From `man zshall`:
>
> is-at-least needed [ present ]
> Perform a greater-than-or-equal-to comparison of two strings
> having the format of a zsh version number; that is, a string of
> numbers and text with segments separated by dots or dashes.
>
> To do so would require a great deal more complexity.
No, zsh already implements numeric sorting for the "n" parameter
expansion flag.
--
Vincent Lefèvre <vincent@xxxxxxxxxx> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)
Messages sorted by:
Reverse Date,
Date,
Thread,
Author