many utils: cmd arg >&- should not silently success
Open
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 24.1k
- Forks
- 2k
- Avg merge
- 1d 5h
- Merged PRs (30d)
- 365
Description
After some talk with @pixelb about help-version*.sh uutils disabled to avoid large logs, I noticed that we have
$ uu-true --version >&- # success
$ gnu-true --version >&-
true: write error: Bad file descriptor
$ ls >&- # success
$ gnu-ls >&-
ls: write error: Bad file descriptor
Related: #9782 #9769
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 by reproducing the uu-true --version >&- and ls >&- cases, then inspect the help-version*.sh coverage mentioned in the issue and compare the related issues #9782 and #9769. Done means affected utilities report the bad-file-descriptor write failure instead of exiting successfully.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100