Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Finish chgrp #374

Merged
merged 1 commit into from
Nov 3, 2024
Merged

Finish chgrp #374

merged 1 commit into from
Nov 3, 2024

Conversation

JRF63
Copy link
Contributor

@JRF63 JRF63 commented Nov 1, 2024

This PR finalizes the chgrp implementation and includes tests for it.

I found an undocumented quirk regarding passing a missing group argument to chgrp that's neither mentioned in the man page nor in the specification. Supposedly,

chgrp '' a

Should change a's ctime but shouldn't modify its group. I think the behavior was taken from chown based on its man page. I added it in because it seems like a common pattern seeing that it's even on Rust's chown.

@jgarzik jgarzik merged commit 51fbfb8 into rustcoreutils:main Nov 3, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants