From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23208 invoked by alias); 11 Dec 2015 11:22:31 -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: 21079 Received: (qmail 25190 invoked from network); 11 Dec 2015 11:22:31 -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: Fri, 11 Dec 2015 12:22:29 +0100 From: Vincent Lefevre To: zsh-users@zsh.org Subject: Re: possible 'is-at-least' bug? Message-ID: <20151211112229.GB8386@zira.vinc17.org> Mail-Followup-To: zsh-users@zsh.org References: <20151207102525.GA12995@cventin.lip.ens-lyon.fr> <151209160157.ZM28612@torch.brasslantern.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <151209160157.ZM28612@torch.brasslantern.com> X-Mailer-Info: https://www.vinc17.net/mutt/ User-Agent: Mutt/1.5.24-6539-vl-r83103 (2015-12-08) On 2015-12-09 16:01:57 -0800, Bart Schaefer wrote: > On Dec 7, 11:25am, Vincent Lefevre wrote: > } Subject: 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. > } > > } > To do so would require a great deal more complexity. > } > } No, zsh already implements numeric sorting for the "n" parameter > } expansion flag. > > That's not the complexity he means. Right now is-at-least splits up > the string on dots and dashes by the simple expedient of setting $IFS. > To also split "1a1" and "1b2" etc. on the non-space between the numbers > and the letters, would require quite a bit more effort. I meant that two such words could be compared without having to split them, thanks to numeric sorting. -- Vincent Lefèvre - Web: 100% accessible validated (X)HTML - Blog: Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)