One question: is it intentional that --size 0 --stop-at-size turns off the limit? Because in dd count=0 it's different
Yes it works, thanks Andrew
I've just got the same results as you. Msys64/Cygwin strace accepts different arguments:
echo abcdefghi
PS the reason why I don't use dd is that dd only guarantees exact transfer size when iflag=fullblock, but that accumulates the data instead of writing it immediately. PV seemed a perfect alternative.
I also recompiled the Cygwin binary with debug as you suggested and got the same results as you. I asked in the mailing list https://cygwin.com/pipermail/cygwin/2024-May/255941.html
In the...
displayed output stops entirely for at least 10 seconds
Yes.
Then after the "sleep" finishes, both "pv" instances just sit there updating their progress
For me the entire command...
I currently only have the Cygwin build of pv 1.8.9 and I noticed a possible problem: pv may fail to flush its buffer after EOF. Please try to reproduce it.
basin@basin /tmp
$...
I get similar results with:
WSL2 (Ubuntu): 1.6.6-1build2 amd64
Msys2: 1.6.20 x86-64
Cygwin64: 1.8.5