diff options
author | Bruce Korb <bkorb@gnu.org> | 2008-08-14 06:24:59 -0700 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2008-08-15 09:52:06 +0200 |
commit | 4c9fae4e97d95a9f89d1399a8aeb03051f0fec96 (patch) | |
tree | 5df98709704785a5158f841f38c816472263f1bf /ChangeLog-2008 | |
parent | a01c4720d6bd05798168654534c70a31a39e4828 (diff) | |
download | coreutils-4c9fae4e97d95a9f89d1399a8aeb03051f0fec96.tar.xz |
sort: new option, --sort=version, for version number ordering
* src/sort.c [struct keyfield] (version): New member.
(usage): Describe --version-sort.
(sort_options): Add 'V'.
(long_options): Add "version-sort".
(CHECK_TABLE, _ct_, SORT_TABLE, _st_): Define new macros.
(check_args, sort_args, sort_types): Use these new macros in declarations.
(ARGMATCH_VERIFY): Remove use. No longer needed.
(compare_version): New function.
(key_compare): Add a case.
(check_ordering_compatibility): Handle new type.
(main): Likewise. Reformat two expressions for readability.
* tests/misc/sort-version: new test file
* tests/Makefile.am: add it to the list
* doc/coreutils.texi (sort invocation): Document it.
* NEWS: Mention the new feature.
Diffstat (limited to 'ChangeLog-2008')
-rw-r--r-- | ChangeLog-2008 | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/ChangeLog-2008 b/ChangeLog-2008 index aac9febeb..da33f93f8 100644 --- a/ChangeLog-2008 +++ b/ChangeLog-2008 @@ -1,3 +1,10 @@ +2008-07-05 Bruce Korb <bkorb@gnu.org> + + * src/sort.c: implement version number sort + (compare_version): new procedure to do it. + * tests/misc/sort-version: new test file + * tests/Makefile.am: add it to the list + 2008-02-07 Jim Meyering <meyering@redhat.com> We *do* need two different version files. |