diff --git a/src/uu/factor/src/cli.rs b/src/uu/factor/src/cli.rs index 9f3d55db9..714b38e5e 100644 --- a/src/uu/factor/src/cli.rs +++ b/src/uu/factor/src/cli.rs @@ -52,6 +52,7 @@ fn print_factors_str( writeln!(factors_buffer, "{}:{}", x, factor(x))?; } w.write_all(factors_buffer.as_bytes())?; + w.flush()?; Ok(()) }) }