Implement `whereis`
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
Research direction
Start with misc-utils/whereis.1.adoc and compare the required behavior with the original C source. Investigate how clap can represent cumulative search restrictions and resets for command-line name patterns; done means implementing whereis with the documented -b, -m, and -s behavior.
Written by the indexing model from the issue text.
Description
Implementing https://github.com/util-linux/util-linux/blob/master/misc-utils/whereis.1.adoc
I'll am taking this up, but facing the following issue:
The search restrictions (options -b, -m and -s) are cumulative and apply to the subsequent name patterns on the command line. Any new search restriction resets the search mask. For example,
whereis -bm ls tr -m gcc
searches for "ls" and "tr" binaries and man pages, and for "gcc" man pages only.
whereis has sticky, resettable options and clap doesn't have a clear support for doing the same.
(The approach would be to use .trailing_var_arg(true) and use a simple match as in the original C source. This defeats the purpose of clap)
- Dominant language
- Rust
- Stars
- 219
- Forks
- 59
- Avg merge
- 4h 8m
- Merged PRs (30d)
- 5
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.
More from uutils/util-linux
-
Implement `chrt` Open
Difficulty 4/5 3-5 days Newbie friendliness 48/100
uutils/util-linux#641 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
uutils/util-linux#638 ·
-
Implement `rename` Open
Difficulty 3/5 1-2 days Newbie friendliness 55/100
uutils/util-linux#629 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
uutils/util-linux#624 ·
-
Difficulty 5/5 Over a week Newbie friendliness 42/100
uutils/util-linux#620 · 1 comment ·
All issues in uutils/util-linux
Similar issues
-
risk:low runtime status:in-progress type:test
Difficulty 1/5 Under an hour Newbie friendliness 92/100
zeroclaw-labs/zeroclaw#11023 ·
-
good first issue refactor
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
EricSpencer00/Resilient#4835 · 1 comment ·
-
agent:ready documentation
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
cesarferreira/stax#890 ·
-
bug
Difficulty 1/5 Under an hour Newbie friendliness 90/100