Re: [PATCH v3] tag: support --sort=<spec>
- From
Duy Nguyen <pclouds@gmail.com>
- Date
- Feb 26, 2014, 11:31 UTC
- Message-ID
- <CACsJy8An3GH7LMx4=s-7hO3waphcC2nGK1N-CvPYbh+=Zzngqw@mail.gmail.com>
- In-Reply-To
- <20140226110803.GG25711@sigill.intra.peff.net>
On Wed, Feb 26, 2014 at 6:08 PM, Jeff King <peff@peff.net> wrote:
> But before thinking about that, I'd want to know why > glibc behaves as it does.
Pure guess. It may be because it targets more than software version. In strverscmp man page, the example is "jan1, jan10, jan2...". versionsort() in glibc might be the reason that strverscmp was added and it's used to compare/sort dir entries, so the target might be numbered log files.
-- Duy