mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 11:37:44 +00:00
tests/csplit: use printf instead of echo -n for maximum portability with all UNIX systems
This commit is contained in:
parent
981019138d
commit
a4fdecbf48
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue