diff options
author | Larry Wall <lwall@netlabs.com> | 1991-06-06 23:28:02 +0000 |
---|---|---|
committer | Larry Wall <lwall@netlabs.com> | 1991-06-06 23:28:02 +0000 |
commit | 6e21c824d91ef0b4ae60b95b347e344e5bb4d38a (patch) | |
tree | cc298b664815eb149de874f4694ea9d4b3f08308 /t | |
parent | 2b317908ea5309ab202d1cdbadccfdf42d10e2b1 (diff) | |
download | perl-6e21c824d91ef0b4ae60b95b347e344e5bb4d38a.tar.gz |
perl 4.0 patch 6: patch #4, continued
See patch #4.
Diffstat (limited to 't')
-rw-r--r-- | t/op/groups.t | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/t/op/groups.t b/t/op/groups.t index 73ec3a0d9a..f8cb4cad58 100644 --- a/t/op/groups.t +++ b/t/op/groups.t @@ -9,10 +9,16 @@ print "1..1\n"; for (split(' ', $()) { next if $seen{$_}++; - push(@gr, (getgrgid($_))[0]); + ($group) = getgrgid($_); + if (defined $group) { + push(@gr, $group); + } + else { + push(@gr, $_); + } } $gr1 = join(' ',sort @gr); -$gr2 = join(' ', sort split(' ',`groups`)); +$gr2 = join(' ', sort split(' ',`/usr/ucb/groups`)); #print "gr1 is <$gr1>\n"; #print "gr2 is <$gr2>\n"; print +($gr1 eq $gr2) ? "ok 1\n" : "not ok 1\n"; |