From a4fdecbf48e33116fe91d993a43e47a074d18102 Mon Sep 17 00:00:00 2001 From: Fuad Ismail Date: Tue, 7 Jan 2025 23:13:47 +0700 Subject: [PATCH] tests/csplit: use printf instead of echo -n for maximum portability with all UNIX systems --- tests/by-util/test_csplit.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/by-util/test_csplit.rs b/tests/by-util/test_csplit.rs index 0b2353a50..38f5c97bf 100644 --- a/tests/by-util/test_csplit.rs +++ b/tests/by-util/test_csplit.rs @@ -1445,7 +1445,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() }