tee: handle short writes to stdout correctly
Author: mattsu2020Created Sep 30, 2026Updated Sep 30, 2026
LabelsB - high priorityU - teegnu testsuite
tee does not correctly handle short writes to stdout when stdout is a regular file on Linux.
The GNU tee/short-write.sh test expects short writes to be retried until the remaining data is written, but the current implementation uses the splice path for regular-file stdout, bypassing the injected write(2) short writes.
We should ensure that short writes to regular-file stdout are handled correctly.
Related to #14705.
Source: uutils/coreutils