summaryrefslogtreecommitdiff
path: root/NEWS
diff options
context:
space:
mode:
authorPádraig Brady <P@draigBrady.com>2011-07-19 09:06:37 +0100
committerPádraig Brady <P@draigBrady.com>2011-07-20 10:38:46 +0100
commit65a0483fb55bd2b4dab305af8a95cd25e292142b (patch)
treeb3659380054dbe0bc0f627a3d06cedb42f0736b4 /NEWS
parentdc7284ef722b64569b1cb48df6b6c2d3fcd8b9a8 (diff)
downloadcoreutils-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--NEWS5
1 files changed, 5 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index 61e6e6381..2952dc9a7 100644
--- a/NEWS
+++ b/NEWS
@@ -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,