Eric Blake <address@hidden> writes:
> POSIX requires that a group name that is completely numeric (yes,
> that is a portable group name) takes preference over a group number.
That's awkward. The obvious workaround is to keep prepending 0s until
you come up with a name that's not used. But I'd rather not worry
about that unless someone actually runs into the problem.
> At the moment, I'm not on the machine where I noticed all the
> problems, but off the top of my head,
If you can come up with an exact list of problems, preferably with
patches, that'd be nice.
> Is there any program that makes it easy to map between group names and
> numbers, other than manually trying to parse /etc/group?
/etc/group isn't portable. "id" is usually the best.
> Is it worth adding more GNU extensions to the id program to
> accomplish this?
It might be, yes (not that I'd like to spend my time implementing it :-).
Frankly I didn't follow your examples, though.