]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
tests: add a test for a previously fixed output format bug in join
authorPádraig Brady <P@draigBrady.com>
Mon, 23 Jul 2012 08:29:57 +0000 (09:29 +0100)
committerPádraig Brady <P@draigBrady.com>
Mon, 23 Jul 2012 08:54:18 +0000 (09:54 +0100)
Add a test and NEWS entry for a bug inadvertently fixed in
a refactoring in commit v8.9-32-gd4db0cb

* tests/misc/join (v2-format): Add a new test.
* THANKS.in: Add the reporter.
* NEWS: Mention the old bug.
* cfg.mk (old_NEWS_hash): Update.

Reported-by: Jean-Pierre Tosoni
NEWS
THANKS.in
cfg.mk
tests/misc/join

diff --git a/NEWS b/NEWS
index 113b30a02093ac6784408033d07d2d640aaa5849..f1255eabb0845d4296276f50cc8d17cff1dc99fc 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -477,6 +477,10 @@ GNU coreutils NEWS                                    -*- outline -*-
   join --header now skips the ordering check for the first line
   even if the other file is empty.  [bug introduced in coreutils-8.5]
 
+  join -v2 now ensures the default output format prints the match field
+  at the start of the line when it is different to the match field for
+  the first file. [bug present in "the beginning".]
+
   rm -f no longer fails for EINVAL or EILSEQ on file systems that
   reject file names invalid for that file system.
 
index dc0b9dd955dcdfb0a5507035c4a83fcf678c9072..5db443bcef10f849b98110e272404fc0e33ff7c2 100644 (file)
--- a/THANKS.in
+++ b/THANKS.in
@@ -275,6 +275,7 @@ Jari Aalto                          jari.aalto@cante.net
 Jarkko Hietaniemi                   jhi@epsilon.hut.fi
 Jarod Wilson                        jwilson@redhat.com
 Jean Charles Delepine               delepine@u-picardie.fr
+Jean-Pierre Tosoni                  jpt.7196@gmail.com
 Jeff Moore                          jbm@mordor.com
 Jeff Sheinberg                      jeff@bsrd.net
 Jens Elkner                         elkner@imsgroup.de
diff --git a/cfg.mk b/cfg.mk
index f7805111b8375267df34476731615fcc238b8867..261efa52707d6b0603811c86e2fc0857be10d5b5 100644 (file)
--- a/cfg.mk
+++ b/cfg.mk
@@ -45,7 +45,7 @@ export VERBOSE = yes
 # 4914152 9e
 export XZ_OPT = -8e
 
-old_NEWS_hash = 4f70c9ef883feff18d9d5f66a941f3a8
+old_NEWS_hash = 38cad4d11c6ce866fc52213e3a4dc437
 
 # Add an exemption for sc_makefile_at_at_check.
 _makefile_at_at_check_exceptions = ' && !/^cu_install_program =/'
index a3fd1a8fa413acf157a4c3c51ebed1a726f9abeb..62074b7be99edb6c7b55ecad00fed998ddd27d62 100755 (executable)
@@ -147,6 +147,10 @@ my @tv = (
  ["a,1,,2\nb,1,2\n", "a,3,4\nb,3,4\n"],
  "a,1,,2,3,4\nb,1,2,,3,4\n"],
 
+# For -v2, print the match field correctly with the default output format,
+# when that match field is different between file 1 and file 2.  Fixed in 8.10
+['v2-order', '-v2 -2 2', ["", "2 1\n"], "1 2\n", 0],
+
 # From Tim Smithers: fixed in 1.22l
 ['trailing-sp', '-t: -1 1 -2 1', ["a:x \n", "a:y \n"], "a:x :y \n", 0],