1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 03:27:44 +00:00

cat: ignore -u flag, just like GNU does

This commit is contained in:
Ben Wiederhake 2024-03-01 12:22:33 +01:00
parent 472b56f0ff
commit cd70d7dec1
2 changed files with 18 additions and 0 deletions

View file

@ -612,3 +612,14 @@ fn test_error_loop() {
.fails()
.stderr_is("cat: 1: Too many levels of symbolic links\n");
}
#[test]
fn test_u_ignored() {
for same_param in ["-u", "-uu"] {
new_ucmd!()
.arg(same_param)
.pipe_in("hello")
.succeeds()
.stdout_only("hello");
}
}