GNU bug report logs - #9987
RFE: 'groups' command ADD command switches "-0", and "-1"

Previous Next

Package: coreutils;

Reported by: Linda Walsh <coreutils <at> tlinx.org>

Date: Mon, 7 Nov 2011 22:31:01 UTC

Severity: normal

Merged with 12083

Done: Bernhard Voelker <mail <at> bernhard-voelker.de>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Bernhard Voelker <mail <at> bernhard-voelker.de>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#12083: closed (bug in groups command -- doesn't quote usage
 of group-separator in groupnames)
Date: Sat, 21 Sep 2013 12:20:05 +0000
[Message part 1 (text/plain, inline)]
Your message dated Sat, 21 Sep 2013 14:19:17 +0200
with message-id <523D8EC5.30705 <at> bernhard-voelker.de>
and subject line Re: bug#9987: [PATCH] groups,id: add -0, --null option
has caused the debbugs.gnu.org bug report #9987,
regarding bug in groups command -- doesn't quote usage of group-separator in groupnames
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
9987: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9987
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Linda Walsh <coreutils <at> tlinx.org>
To: bug-coreutils <at> gnu.org
Subject: bug in groups command -- doesn't quote usage of group-separator in
	groupnames
Date: Sun, 29 Jul 2012 13:24:28 -0700
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,
:-)







[Message part 3 (message/rfc822, inline)]
From: Bernhard Voelker <mail <at> bernhard-voelker.de>
To: Eric Blake <eblake <at> redhat.com>
Cc: 9987-done <at> debbugs.gnu.org,
 Pádraig Brady <P <at> draigBrady.com>
Subject: Re: bug#9987: [PATCH] groups,id: add -0, --null option
Date: Sat, 21 Sep 2013 14:19:17 +0200
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


This bug report was last modified 11 years and 299 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.