Subject: bug#12083: closed (Re: bug#9987: [PATCH] groups,id: add -0, --null option)

From: [email-masked] (GNU bug Tracking System)
Date: Sat, 21 Sep 2013 12:20:06 +0000

Your bug report

#9987: bug in groups command -- doesn't quote usage of group-separator in groupnames

which was filed against the coreutils package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
9987: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9987
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#9987: [PATCH] groups,id: add -0, --null option
From: Bernhard Voelker <[email-masked]>
To: Eric Blake <[email-masked]>
Cc: [email-masked],Pádraig Brady <[email-masked]>
Date: Sat, 21 Sep 2013 14:19:17 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

On 09/21/2013 02:12 PM, Eric Blake wrote:
> On 09/21/2013 04:38 AM, Pádraig Brady wrote:
>> On 09/21/2013 11:15 AM, Bernhard Voelker wrote:
>>> diff --git a/tests/misc/id-zero.sh b/tests/misc/id-zero.sh
>>
>>> +id root || fail=1
>>
>> The 'root' name is guaranteed to be present,
> 
> Not on Cygwin.
> 

Okay, pushed with that change.
http://git.sv.gnu.org/cgit/coreutils.git/commit/?id=2a0d241f

Marking this bug as done.

Thanks & have a nice day,
Berny

Subject: bug in groups command -- doesn't quote usage of group-separator in groupnames
From: Linda Walsh <[email-masked]>
To: [email-masked]
Date: Sun, 29 Jul 2012 13:24:28 -0700
List-Id: <debbugs-submit.debbugs.gnu.org>

the 'groups' only prints out a bunch of words, but it doesn't tell me which
of those are groups and which of those are not groups.

It uses unquoted , space separated group name -- which has been known to be
problematic for years (cf. find's -print0, or xargs -0, et al.).

If this was only a default, and it could optionally print them 1/line or
a backslash before non-separator spaces in groupnames, or even with a
null like find, it might be workable, but the default, as it is 100% likely
to not print out Windows groupnames that it might be serving.

Even if it could use a TAB separator, that would still count as white space,
but be 99% less likely (maybe 100%) to conflict with existing group names.

Fixable?  As it doesn't follow standards now, if one uses a space as a
group separator, as what is listed, is incorrect (i.e. interpreting the list
as a space separated group list will result in faulty results).

Thanks,
:-)