diff options
author | Pádraig Brady <P@draigBrady.com> | 2011-01-05 11:52:54 +0000 |
---|---|---|
committer | Pádraig Brady <P@draigBrady.com> | 2011-01-29 23:08:31 +0000 |
commit | d4db0cb1827730ed5536c12c0ebd024283b3a4db (patch) | |
tree | 091f857d1f547e9468501d14fc58291d2092b27e /NEWS | |
parent | 68a734d66bbe72d5d4133c386fa77069dd77fb8c (diff) | |
download | coreutils-d4db0cb1827730ed5536c12c0ebd024283b3a4db.tar.xz |
join: add -o 'auto' to output a constant number of fields per line
Lines with a different number of fields than the first line,
will be truncated or padded.
* src/join.c (prfields): A new function refactored from prjoin(),
to output all but the join field.
(prjoin): Don't swap line1 and line2 when line1 is blank
so that the padding is applied to the right place.
(main): Handle the -o 'auto' option.
* tests/misc/join: Add 6 new cases to test the auto format.
* NEWS: Mention the change in behavior.
Suggestion from Assaf Gordon
Diffstat (limited to 'NEWS')
-rw-r--r-- | NEWS | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -16,6 +16,12 @@ GNU coreutils NEWS -*- outline -*- uniq -f NUM no longer tries to process fields after end of line. [bug introduced in coreutils-7.0] +** New features + + join now supports -o 'auto' which will automatically infer the + output format from the first line in each file, to ensure + the same number of fields are output for each line. + * Noteworthy changes in release 8.9 (2011-01-04) [stable] |