uutils / uutils/coreutils

gnucompability(chgrp): using `:1000` as a group will get accepted by uutils one but will be rejected by gnu one

Open
#12,792 0 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.