coreutils
coreutils copied to clipboard
tests/misc/close-stdout.sh
Probably related to #2925
So, Rust's print!, println!, std::io::stdout().write, etc. don't fail when fd 1 is closed. This is because of RFC 1014.
GNU version utils fail with Bad file descriptor, when they write something.
Also related to #3093
Also related to https://github.com/uutils/coreutils/issues/2873#issuecomment-1024940029, https://github.com/uutils/coreutils/issues/2873#issuecomment-1121421934, https://github.com/uutils/coreutils/issues/2873#issuecomment-1121436639