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

Re: How to impose a numeric sort on negative numbers?



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