Skip to content

feat: Add newgrp command (#94)#117

Open
Niloyyy wants to merge 1 commit into
microsoft:mainfrom
Niloyyy:feature/add-newgrp
Open

feat: Add newgrp command (#94)#117
Niloyyy wants to merge 1 commit into
microsoft:mainfrom
Niloyyy:feature/add-newgrp

Conversation

@Niloyyy

@Niloyyy Niloyyy commented Jun 9, 2026

Copy link
Copy Markdown

-This PR implements the newgrp command requested in #94.

-It uses LookupAccountNameW and SetTokenInformation to modify the primary group of the process token, then spawns a new shell (%SHELL% or cmd.exe), conforming to standard POSIX-like expectations on Windows.

-It is implemented as a local workspace crate (uu_newgrp) since GNU coreutils does not natively provide it.

@Niloyyy

Niloyyy commented Jun 9, 2026

Copy link
Copy Markdown
Author

@microsoft-github-policy-service agree

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.

1 participant