summaryrefslogtreecommitdiff
path: root/NEWS
diff options
context:
space:
mode:
authorJames Youngman <jay@gnu.org>2008-02-19 14:13:00 +0100
committerJim Meyering <meyering@redhat.com>2008-02-19 15:17:39 +0100
commita1e715698a038af7ff341011a2aeecf6729c8de9 (patch)
tree7786e67b64636ee6cca2a2ca720dcc9f1ef14fbf /NEWS
parent4242d4f5c4f32374b684882a74e1b773ad01b1d6 (diff)
downloadcoreutils-a1e715698a038af7ff341011a2aeecf6729c8de9.tar.xz
join: new options: --check-order and --nocheck-order.
* src/join.c: Support --check-order and --nocheck-order. New variables check_input_order, seen_unpairable and issued_disorder_warning[]. For --check-order, verify that the input files are in sorted order. For the default case, check the order only if there are unpairable lines. (join): Perform ordering checks after reaching EOF on either input. (usage): Mention --check-order and --nocheck-order. (dupline): Save a copy of the previously-read input line so that we can detect disorder on the input. (get_line): Temporarily save a copy of the previous line (by calling dupline) and check relative ordering (by calling checkorder) before returning the newly-read line. (getseq, join): Tell get_line which file we are reading from. (advance_seq): New function, factoring out some of the code commonly surrounding calls to getseq. (checkorder): New function. Verifies that a pair of consecutive input lines are in sorted order. * doc/coreutils.texi (join invocation): Document the new options --check-order and --nocheck-order. * tests/join/Test.pm (tv): Added tests for --check-order and --nocheck-order. * NEWS: Mention this new feature.
Diffstat (limited to 'NEWS')
-rw-r--r--NEWS5
1 files changed, 5 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index bc1b47db5..daa5633b6 100644
--- a/NEWS
+++ b/NEWS
@@ -16,6 +16,11 @@ GNU coreutils NEWS -*- outline -*-
rather than reporting the invalid string format.
[bug introduced in coreutils-6.0]
+** New features
+
+ join now verifies that the inputs are in sorted order. This check can
+ be turned off with the --nocheck-order option.
+
** Improvements
ls --color no longer outputs unnecessary escape sequences