dd conv=unblock: print final newline consistently
authorJim Meyering <meyering@redhat.com>
Wed, 9 Sep 2009 14:48:02 +0000 (16:48 +0200)
committerJim Meyering <meyering@redhat.com>
Thu, 10 Sep 2009 10:25:04 +0000 (12:25 +0200)
commit0bbb9d7785957437182fc633b2d387cc51ee918e
tree0d7c2962c911b153ab1c90c09e67ccbddc82f3d6
parentf1e1e89e8166153852de1cc1777edb40dc4c08e9
dd conv=unblock: print final newline consistently

* src/dd.c (dd_copy) [C_UNBLOCK]: Always print the final newline for
non-empty output, not just when output size is a multiple of cbs.
* doc/coreutils.texi (dd invocation) [conv=unblock]: Mention that dd
prints a newline after each output record, not just when replacing
trailing spaces.
Reported by Ulrich Drepper.
* tests/dd/unblock: New file.  Test for this.
* tests/Makefile.am (TESTS): Add it.
* NEWS (Bug fixes): Mention it.
NEWS
doc/coreutils.texi
src/dd.c
tests/Makefile.am
tests/dd/unblock [new file with mode: 0755]