diff options
author | Pádraig Brady <P@draigBrady.com> | 2011-07-19 09:06:37 +0100 |
---|---|---|
committer | Pádraig Brady <P@draigBrady.com> | 2011-07-20 10:38:46 +0100 |
commit | 65a0483fb55bd2b4dab305af8a95cd25e292142b (patch) | |
tree | b3659380054dbe0bc0f627a3d06cedb42f0736b4 /NEWS | |
parent | dc7284ef722b64569b1cb48df6b6c2d3fcd8b9a8 (diff) | |
download | coreutils-65a0483fb55bd2b4dab305af8a95cd25e292142b.tar.xz |
unexpand: fix misalignment when spaces span a tabstop
The following dropped the space from the first field
printf "1234567 \t1\n" | unexpand -a
Note POSIX says that spaces should not precede tabs.
Also a single trailing space should not be converted
if the next field starts with non blank characters.
So we enforce those rules too, with this change.
* src/unexpand.c (unexpand): Implement as per POSIX rules.
* tests/misc/unexpand: Add tests, and adjust existing
tests as per POSIX rules.
* NEWS: Mention the fix.
Reported by Hallvard B Furuseth
Diffstat (limited to 'NEWS')
-rw-r--r-- | NEWS | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -18,6 +18,11 @@ GNU coreutils NEWS -*- outline -*- timeout is no longer confused when starting off with a child process. [bugs introduced in coreutils-7.0] + unexpand -a now aligns correctly when there are spaces spanning a tabstop, + followed by a tab. In that case a space was dropped, causing misalignment. + We also now ensure that a space never precedes a tab. + [bug introduced in coreutils-5.3.0] + ** Changes in behavior chmod, chown and chgrp now output the original attributes in messages, |