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


Message #22 received at 9987 <at> debbugs.gnu.org (full text, mbox):

From: Pádraig Brady <P <at> draigBrady.com>
To: Bernhard Voelker <mail <at> bernhard-voelker.de>
Cc: 9987 <at> debbugs.gnu.org
Subject: Re: [PATCH] groups,id: add -0, --null option
Date: Mon, 02 Sep 2013 15:03:20 +0100
unarchive 9987
stop

On 09/01/2013 10:35 PM, Bernhard Voelker wrote:
> The attached patch implements the -0,--null option for groups(1)
> and id(1) as discussed in
> 
>   http://bugs.gnu.org/9987

bug CC'd

> 
> and
> 
>   http://lists.gnu.org/archive/html/bug-coreutils/2011-11/msg00024.html
> 
> and as mentioned on Padraig's TODO list:
> 
>   http://www.pixelbeat.org/patches/coreutils/inbox_apr_2013.html
>   TODO --> "group -0 to support group names with spaces etc."

I'd not updated the TODO, but the details in 9987 above
suggested that -z, --zero would be better since most tools use that.

Also mentioned there was only honoring -z when the groups for
a single user were being output. I.E. no double NUL stuff.
But I'm not against the double NUL approach really.

It would be good I think to have a separate patch though
that aligned with other systems and didn't output the
"user:" at the start of the line when only a single user is specified.

thanks,
Pádraig.




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.