uutils / uutils/coreutils

many utils: cmd arg >&- should not silently success

Open
#9,795 4 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.