diff: clustered short options such as -ut and -qst are rejected
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
Research direction
Start by reproducing the clustered-option commands shown in the issue and inspect the diff command's option-parsing entry point. Compare the rejected forms with separate options, while reading the parser replacement context in #97, #193, and the dependency on #291. Done means -qst and -ut behave like their separated equivalents, including output and exit status.
Written by the indexing model from the issue text.
Description
GNU documents that short options without arguments may be combined. uutils accepts these options separately, but rejects the combined forms.
$ printf 'a\nb\n' > a; printf 'a\nc\n' > b
$ diff -qst a b; echo $?
GNU diff 3.12 prints Files a and b differ and exits 1. uutils reports unrecognized option '-qst' and exits 2. diff -ut a b is rejected in the same way, while diff -q -s -t a b works.
#97 and #193 discuss replacing the option parser more generally.
I have a fix ready and will open the PR once #291 is merged, since it builds on that change.
- Dominant language
- Rust
- Stars
- 276
- Forks
- 43
- Avg merge
- 1d 23h
- Merged PRs (30d)
- 8
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing 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.
More from uutils/diffutils
-
cmp: quiet mode compares full file sizes before applying -nPossibly taken @SichenLiang claimed this 5 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
diff: `-y --tabsize=<huge>` overflows the column arithmetic (overflow-checks only)Possibly taken @sami-daniel claimed this 56 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
Maintainers usually reply within 1 day
-
diff panics on an oversized inline context count (`-c`/`-u`/`-C`/`-U`): parse overflow and capacity overflowPossibly taken @MsfPablo claimed this 51 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
uutils/diffutils#245 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 1 day
-
sdiff: fix the layout of unchanged rows, blank lines and cut tabsPossibly taken @sami-daniel claimed this 2 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 28/100
Maintainers usually reply within 1 day
All issues in uutils/diffutils
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
bmander/geomsolver#118 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 1 day
-
Three Windows builds are keyed on a later release than their layoutPossibly taken @ero-qt claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 2 days
-
priority:P3 type:docs
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
sebastian-software/ferroni#253 ·
Maintainers usually reply within 1 day