Hi,

When using groups on Cygwin, I get the following output:

$ groups
Domain Users Remote Desktop Users Users NCBIusers

where all words are separated from each other with single spaces,
resulting for example the two-word group "Domain Users" undistinguishable
from two groups, "Domain" and "Users", and making it unsuitable for scripting.

Compare:

$ id
uid=11111(lavr) gid=10513(Domain Users) groups=10513(Domain Users),555(Remote 
Desktop Users),545(Users),1009(NCBIusers)

Suggested is either to have an option (cf. -z for "id") to separate the groups
on output (alternatively, have them quoted) or to encode the space (and
perhaps all other "irregularities" that are encountered within the name) such
that the group names remain single tokens, e.g. Domain%20Users.

Thanks for considering this,

Anton Lavrentiev
Contractor NIH/NLM/NCBI




Reply via email to