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

Re: possible 'is-at-least' bug?



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