[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: RFC: add'l 'sort -n' options
From: |
Paul Eggert |
Subject: |
Re: RFC: add'l 'sort -n' options |
Date: |
Fri, 03 Nov 2006 23:38:06 -0800 |
User-agent: |
Gnus/5.1008 (Gnus v5.10.8) Emacs/21.4 (gnu/linux) |
Matthew Woehlke <address@hidden> writes:
> '-N _options_, --numeric-sort=_options_'
The other sort options can be attached to -k; how would this work here?
> 'a': convert numbers with strtol(,0) (i.e. automatically recognize
> '0x<num>' (hex), '0<num>' (octal).
> 'o': all numbers are octal, i.e. strtol(,8)
> 'x': all numbers are hexadecimal, i.e. strtol(,16)
These shouldn't use strtol; they should work regardless of the size
of the number, just as it already works for decimal numbers.
> ...and in light of 'o', 'x', perhaps '-B <num>, --numeric-base <num>'
> would be in order?
Yes, perhaps.
- RFC: add'l 'sort -n' options, Matthew Woehlke, 2006/11/03
- Re: RFC: add'l 'sort -n' options,
Paul Eggert <=
- Re: RFC: add'l 'sort -n' options, Matthew Woehlke, 2006/11/06
- Re: RFC: add'l 'sort -n' options, Paul Eggert, 2006/11/06
- Re: RFC: add'l 'sort -n' options, Matthew Woehlke, 2006/11/06
- Re: RFC: add'l 'sort -n' options, Paul Eggert, 2006/11/06
- Re: RFC: add'l 'sort -n' options, Matthew Woehlke, 2006/11/06
- Re: RFC: add'l 'sort -n' options, Paul Eggert, 2006/11/06
- Re: RFC: add'l 'sort -n' options, Matthew Woehlke, 2006/11/06