mirror of
https://github.com/uutils/coreutils.git
synced 2026-06-10 15:48:22 -07:00
tests/csplit: use printf instead of echo -n for maximum portability with all UNIX systems
This commit is contained in:
committed by
Daniel Hofstetter
parent
981019138d
commit
a4fdecbf48
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user