gnucompability(chgrp): using `:1000` as a group will get accepted by uutils one but will be rejected by gnu one
Open
Nobody has claimed this yet.
U - chgrp
- Dominant language
- Rust
- Stars
- 24.1k
- Forks
- 2k
- Avg merge
- 1d 5h
- Merged PRs (30d)
- 365
Description
hi, uutils mianteners
i want let you known that compability issue i triggered it by using
relunsec@relunsec:~/software/coreutils/target/debug$ ./chgrp --from $'relunsec' $':1000' a
relunsec@relunsec:~/software/coreutils/target/debug$ ls -l a
-rw-rw-r-- 1 relunsec relunsec 0 Jun 11 15:31 a
while the gnu one do not accept that syntax
relunsec@relunsec:~/software/coreutils/target/debug$ gnuchgrp --from $'relunsec' $':1000' a
gnuchgrp: invalid group: ‘:1000’
that is a not a bug but is a compability issue, the uutils chgrp needs be compatible with gnu one
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 from the chgrp command entry point and reproduce the provided :1000 comparison with uutils and GNU chgrp. Trace group-argument validation and add coverage for this syntax; done means uutils rejects :1000 consistently with GNU coreutils.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100