diff --git a/src/uu/tee/src/tee.rs b/src/uu/tee/src/tee.rs index 685cc65b27e..2f0f1bd044e 100644 --- a/src/uu/tee/src/tee.rs +++ b/src/uu/tee/src/tee.rs @@ -94,7 +94,7 @@ fn tee(options: &Options) -> Result<()> { return Ok(()); } - // We cannot use std::io::copy here as it doesn't flush the output buffer + // don't use io::copy since content of 1 read should be immediately written for posix requirement let res = match output.copy_unbuffered() { // ErrorKind::Other is raised by MultiWriter when all writers // have exited, so that copy will abort. It's equivalent to