From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27235 invoked by alias); 7 Dec 2015 10:56:48 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 21056 Received: (qmail 27070 invoked from network); 7 Dec 2015 10:56:46 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=0.6 required=5.0 tests=BAYES_00,TO_NO_BRKTS_PCNT autolearn=no autolearn_force=no version=3.4.0 Date: Mon, 7 Dec 2015 11:25:25 +0100 From: Vincent Lefevre To: zsh-users@zsh.org Subject: Re: possible 'is-at-least' bug? Message-ID: <20151207102525.GA12995@cventin.lip.ens-lyon.fr> Mail-Followup-To: zsh-users@zsh.org References: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Mailer-Info: https://www.vinc17.net/mutt/ User-Agent: Mutt/1.5.24-6535-vl-r83103 (2015-12-01) 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 - Web: 100% accessible validated (X)HTML - Blog: Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)