From: Vincent Lefevre <vincent@vinc17.net>
To: zsh-users@zsh.org
Subject: Re: possible 'is-at-least' bug?
Date: Fri, 11 Dec 2015 12:22:29 +0100 [thread overview]
Message-ID: <20151211112229.GB8386@zira.vinc17.org> (raw)
In-Reply-To: <151209160157.ZM28612@torch.brasslantern.com>
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 <vincent@vinc17.net> - 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)
next prev parent reply other threads:[~2015-12-11 11:22 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-04 23:45 TJ Luoma
2015-12-05 6:29 ` Benjamin R. Haskell
2015-12-07 10:25 ` Vincent Lefevre
2015-12-10 0:01 ` Bart Schaefer
2015-12-11 11:22 ` Vincent Lefevre [this message]
2015-12-12 5:29 ` Bart Schaefer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20151211112229.GB8386@zira.vinc17.org \
--to=vincent@vinc17.net \
--cc=zsh-users@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).