diff options
author | Pádraig Brady <P@draigBrady.com> | 2011-01-14 08:46:21 +0000 |
---|---|---|
committer | Pádraig Brady <P@draigBrady.com> | 2011-01-29 23:33:25 +0000 |
commit | 32626bde6d68508109a99dfe0a089a0025f56085 (patch) | |
tree | 5f45efbab1684bbf57184dbdc82e7f7ebb6cf151 /tests | |
parent | d4db0cb1827730ed5536c12c0ebd024283b3a4db (diff) | |
download | coreutils-32626bde6d68508109a99dfe0a089a0025f56085.tar.xz |
join: ensure --header skips the order check with empty files
* src/join.c: Skip the header even if one of the files is empty.
* tests/misc/join: Add a test case.
* NEWS: Mention the fix
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/misc/join | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/misc/join b/tests/misc/join index 3cf278b9f..5086ee75e 100755 --- a/tests/misc/join +++ b/tests/misc/join @@ -239,6 +239,12 @@ my @tv = ( [ "ID1 Name\n1 A\n2 B\n", "ID2 Color\n1 red\n"], "ID1 Name Color\n1 A red\n", 0], +# '--header' doesn't check order of a header +# even if there is no header in the second file +['header-6', '--header -a1', + [ "ID1 Name\n1 A\n", ""], + "ID1 Name\n1 A\n", 0], + ); # Convert the above old-style test vectors to the newer |