From f9b7423eef273591df8d2723f1c995fab887c4b9 Mon Sep 17 00:00:00 2001 From: vix <1@1.1> Date: Sun, 23 Apr 2023 20:29:54 +0200 Subject: [PATCH] Add flush after calculating factor --- src/uu/factor/src/cli.rs | 1 + 1 file changed, 1 insertion(+) 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(()) }) }