diff options
author | Jim Meyering <meyering@redhat.com> | 2011-08-04 19:31:50 +0200 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2011-08-08 10:12:38 +0200 |
commit | 70555790672b5465b4f4167b85c9015d5be1f2fd (patch) | |
tree | 5b8bd13e7496bb13cb69c6e0a2b2bf9c97cf8a53 /NEWS | |
parent | 005534907cdc7ff0a4c7908631ff596c4b07ba56 (diff) | |
download | coreutils-70555790672b5465b4f4167b85c9015d5be1f2fd.tar.xz |
join: with --check-order print offending file name, line number and data
* src/join (g_names): New global (was main's "names").
(main): Update all uses of "names".
(line_no[2]): New globals.
(get_line): Increment after reading each line.
(check_order): Print the standard "file name:line_no: " prefix
as well as the offending line when reporting disorder.
Here is a sample old/new comparison:
-join: file 1 is not in sorted order
+join: in:4: is not sorted: contents-of-line-4
* tests/misc/join: Change the two affected tests to expect
the new diagnostic.
Add new tests for more coverage: mismatch in file 2,
two diagnostics, zero-length out-of-order line.
* NEWS (Improvements): Mention it.
Suggested by David Gast in http://debbugs.gnu.org/9236
Diffstat (limited to 'NEWS')
-rw-r--r-- | NEWS | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -66,6 +66,9 @@ GNU coreutils NEWS -*- outline -*- df now supports disk partitions larger than 4 TiB on MacOS X 10.5 or newer and on AIX 5.2 or newer. + join --check-order now prints "join: FILE:LINE_NUMBER: bad_line" for an + unsorted input, rather than e.g., "join: file 1 is not in sorted order". + shuf outputs small subsets of large permutations much more efficiently. For example `shuf -i1-$((2**32-1)) -n2` no longer exhausts memory. |