diff options
author | Pádraig Brady <P@draigBrady.com> | 2013-01-21 15:37:37 +0000 |
---|---|---|
committer | Pádraig Brady <P@draigBrady.com> | 2013-01-26 02:31:53 +0000 |
commit | 51ce0bf8440e18de34586003b1a5d7f568fbf636 (patch) | |
tree | 03bb7348eb727280dbc428072434d32dfcc96908 /src/extract-magic | |
parent | a46d8d02f2b0e49d851a45e63420744b10a10ed4 (diff) | |
download | coreutils-51ce0bf8440e18de34586003b1a5d7f568fbf636.tar.xz |
cut: with -f, process each line independently
Previously line N+1 was inspected before line N was fully output,
which causes output ordering issues at the terminal or delays
from intermittent sources like tail -f.
* src/cut.c (cut_fields): Adjust so that we record the
previous output character so we can use that info to
determine wether to output a '\n' or not.
* tests/misc/cut.pl: Add tests to ensure existing
functionality isn't broken.
* NEWS: Mention the fix.
Fixes bug http://bugs.gnu.org/13498
Diffstat (limited to 'src/extract-magic')
0 files changed, 0 insertions, 0 deletions