Re: [PATCH] t5516: fail to run in verbose mode
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Nov 25, 2022, 04:58 UTC
- Message-ID
- <xmqqzgcfeik0.fsf@gitster.g>
- In-Reply-To
- <Y37F1nxifC8o8qEQ@coredump.intra.peff.net>
Jeff King <peff@peff.net> writes:
Show 7 quoted lines
> One thing I'd worry about is buffering. One of the nice things about > "-v" is that there is nothing between you and the running programs, so > you are much less likely to be fooled about the order of events in the > output. Or wondering why nothing is happening because real-time output > seems to have stalled. But piping through "cat" may end up with weird > pauses while it fills up a 4k buffer. Using stdbuf could help, but > that's far from portable.
We could pipe to "dd bs=1 conv=fsync" (tongue-in-cheek---I think conv=fsync is a GNU thing).