tests/misc/close-stdout.sh
Open
Nobody has claimed this yet.
wontfix
- Dominant language
- Rust
- Stars
- 24.1k
- Forks
- 2k
- Avg merge
- 1d 5h
- Merged PRs (30d)
- 365
Description
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
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with tests/misc/close-stdout.sh, then read the context in issues #2925 and #3093. Compare the behavior of Rust output operations with the GNU utilities when file descriptor 1 is closed; done means the test and affected utilities have an explicit, verified result for this case.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust, shell
- Domain
- cli, testing-qa
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100