diff --git a/tests/by-util/test_csplit.rs b/tests/by-util/test_csplit.rs index 77581e97981..c0764f0f976 100644 --- a/tests/by-util/test_csplit.rs +++ b/tests/by-util/test_csplit.rs @@ -1433,7 +1433,7 @@ fn create_named_pipe_with_writer(path: &str, data: &str) -> std::process::Child nix::unistd::mkfifo(path, nix::sys::stat::Mode::S_IRWXU).unwrap(); std::process::Command::new("sh") .arg("-c") - .arg(format!("echo -n '{}' > {path}", data)) + .arg(format!("printf '{}' > {path}", data)) .spawn() .unwrap() }