You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
many utils: cmd arg >&- should not silently success #9795
Likewise with the SIGPIPE issue, I do not think this can be solved without the help of Rust itself. They decide to open standard file descriptors that have been closed before main [1].
changed the title [-]many utils: cmd arg >&- should fail with write error: Bad file descriptor instead of silent success[/-][+]many utils: cmd arg >&- should not silently success[/+]on Dec 25, 2025
This is what makes the GNU test misc/io-errors fail (every GnuTests run, ~140 cases). To run it: bash util/build-gnu.sh && bash util/run-gnu-test.sh tests/misc/io-errors.sh
Activity
collinfunk commentedon Dec 23, 2025
Likewise with the
SIGPIPEissue, I do not think this can be solved without the help of Rust itself. They decide to open standard file descriptors that have been closed beforemain[1].[1] https://github.com/rust-lang/rust/blob/main/library/std/src/sys/pal/unix/mod.rs#L54
ChrisDryden commentedon Dec 23, 2025
@collinfunk I have an approach here that solves the issue until it can be addressed by rust itself: https://github.com/uutils/coreutils/pull/9664/changes#diff-0cb7b16878f5d3cd1c3e444e45a4b09c151b450c98f227ec29c197cc75ca2f5fR429 is the solution implemented here any different in end outcome than having it addressed by Rust?
ChrisDryden commentedon Dec 23, 2025
the approach of using the data_init reading of the signals for stdin stdout and stderr, can also be applied to the sigpipe issue: https://github.com/uutils/coreutils/pull/9657/changes#diff-0cb7b16878f5d3cd1c3e444e45a4b09c151b450c98f227ec29c197cc75ca2f5fR429
oech3 commentedon Dec 24, 2025
#9810
[-]many utils: cmd arg >&- should fail with write error: Bad file descriptor instead of silent success[/-][+]many utils: cmd arg >&- should not silently success[/+]sylvestre commentedon Nov 17, 2026
This is what makes the GNU test
misc/io-errorsfail (every GnuTests run, ~140 cases). To run it:bash util/build-gnu.sh && bash util/run-gnu-test.sh tests/misc/io-errors.shoech3 commentedon Nov 21, 2026
Please don't use
std*_was_closedat new PR. I'll deprecate them after #16299 . Also new version of Ruststdallows to drop therustix::iohack too.