put "GNU" somewhere in --version
Open
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 24.1k
- Forks
- 2k
- Avg merge
- 1d 5h
- Merged PRs (30d)
- 365
Description
In my scripts if I depend on GNU versions of programs I have bits like this
fooversion="$(foo --version)"
case "$fooversion" in
*GNU*) foo=foo ;;
*) echo 'incompatable version of foo, please install GNU foo' ; exit 1 ;;
esac
you should add something like "compatible with GNU foo" in the --version menu
LLVM does this
llvm-strip, compatible with GNU strip
LLVM (http://llvm.org/):
LLVM version 16.0.3
Optimized build.
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 locating how the coreutils commands handle --version and compare their output with the LLVM example in the issue. Determine which command versions are in scope, then ensure the output includes a GNU compatibility marker without breaking existing version behavior; run the relevant command-line tests if present.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 52/100