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: Bernhard Voelker <mail <at> bernhard-voelker.de>
To: Pádraig Brady <P <at> draigBrady.com>
Cc: 9987 <at> debbugs.gnu.org
Subject: bug#9987: [PATCH] groups,id: add -0, --null option
Date: Wed, 18 Sep 2013 20:46:25 +0200
On 09/18/2013 11:43 AM, Pádraig Brady wrote:
> However we already have this functionality from `id -Gn` so it's not
> worth change `groups` to do this.

Hi Padraig,

thanks for confirming this - using groups(1) is already not enough
portable among platforms.

Regarding the main discussion point, i.e. adding --zero option:
I see the following alternatives:
a) add the -z option only to id.c leaving groups(1) untouched.
b) add the -z option to id.c and groups.c, but don't allow it
   only if no USERNAME argument is given.
c) add the -z option to id.c and groups.c for all cases (including
   the unusual "double NUL" separator between the output for
   consecutive user arguments).

To reduce further incompatibilities, I'd vote for b), i.e. adding
it to groups(1) only for the case where it has to compatible with
"id -Gn".

Other opinions?

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.