I have dd from GNU coreutils 8.32.
When I run { echo a; sleep 1; echo b; } | dd bs=4 count=1 then I get
a
0+1 records in
0+1 records out
2 bytes copied, 2.0381e-05 s, 98.1 kB/s
dd terminates during the sleep even though the block size was not reached and there was no EOF. The output b\n is lost. This does not happen if I remove either sleep or count=1.
In man dd I couldn't find anything that describes this behavior.
- Why doesn't
dd count=1wait tillbsis reached or anEOFis encountered? - How can I force
ddto wait?