od: traditional option -B is not accepted
Maintainers usually reply within 1 day
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 78/100
Research direction
Start with the od utility's argument definitions, next to the existing traditional short flags -h, -H and -X, and find how -B should map to the two-byte octal type (-t o2). Reproduce with printf hello > f; od -B f against od -t o2 f, which should match. Done when -B is accepted, its output matches GNU, and the usage line lists it.
Written by the indexing model from the issue text.
Description
GNU od accepts -B as a traditional short form for octal 2-byte units (-t o2), alongside -h, -H, -X and the others, which uutils already accepts. uutils rejects -B, and its usage line doesn't list it.
Steps to reproduce
$ printf hello > f
$ od -B f
error: unexpected argument '-B' found
tip: to pass '-B' as a value, use '-- -B'
Usage: od [OPTION]... [--] [FILENAME]...
od [-abcdDefFhHiIlLoOsxX] [FILENAME] [[+][0x]OFFSET[.][b]]
...
$ echo $?
1
GNU behavior
$ od -B f
0000000 062550 066154 000157
0000005
$ echo $?
0
The output is the same as od -t o2 f.
Environment
- uutils:
main@ 1747ba15 (od --version: 0.13.0); also reproduces on the 0.12.0 release - GNU coreutils: 9.12, built from source
- Linux aarch64 (Fedora rawhide container),
LANG=C
- Dominant language
- Rust
- Stars
- 24.2k
- Forks
- 2.1k
- Avg merge
- 1d 16h
- Merged PRs (30d)
- 324
Getting set up
Starts the project's dev container in your browser, under your own GitHub account.
- 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/coreutils
-
ptx: break file missing path in error messagePossibly taken A pull request linked to this issue is open or already merged. Open
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
uutils/coreutils#15307 · 1 comment ·
Maintainers usually reply within 1 day
-
minorbug(stat): os errno not stripped when failing to flush stdoutPossibly taken @cestercian claimed this 5 days ago. OpenU - stat
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
uutils/coreutils#15200 · 3 comments ·
Maintainers usually reply within 1 day
-
awaiting upstream U - stty
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
B - high priority U - du
Difficulty 1/5 Under an hour Newbie friendliness 82/100
uutils/coreutils#14984 · 1 comment ·
Maintainers usually reply within 1 day
-
hostname: when domain is none, it should be outputted to stdoutMay be free again A pull request for this issue was closed without being merged. OpenU - hostname
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
uutils/coreutils#14962 · 3 comments ·
Maintainers usually reply within 1 day
All issues in uutils/coreutils
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
Maintainers usually reply within 1 day
-
V1 manifest lists written by Java lose added/existing/deleted file countsPossibly taken @kacper-li-airspace-intelligence claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
apache/iceberg-rust#3445 ·
Maintainers usually reply within 4 days
-
area::tern-sync kind::cleanup triage::ready
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
review-bot
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
midagedev/bloomery#160 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
oxidecomputer/humility#737 ·