We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a284a93 commit 8800d65Copy full SHA for 8800d65
src/uu/id/src/id.rs
@@ -474,6 +474,16 @@ fn pretty(possible_pw: Option<Passwd>) {
474
}
475
476
477
+ let rgid = getgid();
478
+ let egid = getegid();
479
+ if egid != rgid {
480
+ if let Ok(g) = Group::locate(rgid) {
481
+ println!("rgid\t{}", g.name);
482
+ } else {
483
+ println!("rgid\t{rgid}");
484
+ }
485
486
+
487
println!(
488
"groups\t{}",
489
entries::get_groups_gnu(None)
0 commit comments