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 /README-release | |
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 'README-release')
0 files changed, 0 insertions, 0 deletions