3 if (! -x '/usr/ucb/groups') {
10 for (split(' ', $()) {
12 push(@gr, (getgrgid($_))[0]);
14 $gr1 = join(' ',sort @gr);
15 $gr2 = join(' ', sort split(' ',`groups`));
16 #print "gr1 is <$gr1>\n";
17 #print "gr2 is <$gr2>\n";
18 print +($gr1 eq $gr2) ? "ok 1\n" : "not ok 1\n";