]> git.ipfire.org Git - thirdparty/coreutils.git/commit
sort: support all combinations of -d, -f, -i, -R, and -V
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 7 Aug 2010 04:30:17 +0000 (21:30 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 7 Aug 2010 04:30:50 +0000 (21:30 -0700)
commitb877ea4b3ee4c62ab75caedbfdcca4877961aedf
tree92f4f2e66a13e68f3f19ec74b8a86702be6c5a09
parentbdde34f95858e6ec3e6912055da3df0b033a1518
sort: support all combinations of -d, -f, -i, -R, and -V

* NEWS: Document this.
* src/sort.c (getmonth): Omit LEN arg, as MONTH is now null-terminated.
(compare_random): Don't null-terminate keys, as caller now does that.
(compare_version): Remove.
(debug_key): Null-terminate string for getmonth.
(keycompare): Support combining -R with any of -d, -f, -i, -V.
Also, support combining -V with any of -d, -i.
(check_ordering_compatibility): Allow newly-supported combinations.
* tests/misc/sort (02q, 02r, 02s): New tests, for new combinations.
(incompat2): Now test -nR, since -fR are now compatible.
NEWS
src/sort.c
tests/misc/sort