Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: How to impose a numeric sort on negative numbers?
- X-seq: zsh-users 24969
- From: Roman Perepelitsa <roman.perepelitsa@xxxxxxxxx>
- To: Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx>
- Subject: Re: How to impose a numeric sort on negative numbers?
- Date: Wed, 1 Jul 2020 20:12:42 +0200
- Cc: Mikael Magnusson <mikachu@xxxxxxxxx>, Zsh Users <zsh-users@xxxxxxx>
- In-reply-to: <CAKc7PVDwTCnaDNcQhkpjJkhMRuVyfB8eaGLUUKr=VHYJ=rzp2Q@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>
- List-unsubscribe: <mailto:zsh-users-unsubscribe@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <CAKc7PVB7kJ_n7tvrC2Xog=XuhYxvE5iEUx9dnK5oOGBZijbTOg@mail.gmail.com> <CAHYJk3T8YxuNMWUhoGNiY6NReQdOKPdcmeS6jo13iSMsAt44OA@mail.gmail.com> <CAKc7PVDwTCnaDNcQhkpjJkhMRuVyfB8eaGLUUKr=VHYJ=rzp2Q@mail.gmail.com>
- Sender: zsh-users@xxxxxxx
On Wed, Jul 1, 2020 at 8:09 PM Sebastian Gniazdowski
<sgniazdowski@xxxxxxxxx> wrote:
> It's weird that it's different - could you share `allopt' output?
It's locale-dependent. Set LC_ALL=C and you'll see the same output as Mikael.
See on the playground:
https://tio.run/##qyrO@J9YVGSroaBr6Kiga5SkoGvspGCgAOQYOSsAmZoEpLkKijLzShR0ixR0dRVUqjXy8zSBGmq5fJzjHX18bJ1xyP//DwA
Roman.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author