bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#16459: groups to use a selectable separator or to encode group names


From: Lavrentiev, Anton (NIH/NLM/NCBI) [C]
Subject: bug#16459: groups to use a selectable separator or to encode group names with spaces
Date: Wed, 15 Jan 2014 21:38:19 +0000

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

[Prev in Thread] Current Thread [Next in Thread]