[Adduser-devel] Bug#362409: delgroup --only-if-empty returns error code 1, if group is not empty

Marc Haber mh+debian-packages at zugschlus.de
Thu Apr 13 12:20:42 UTC 2006

user adduser at packages.debian.org
usertags #362409 patch-appreciated
severity #362409 wishlist

On Thu, Apr 13, 2006 at 01:37:17PM +0200, Matthias Klose wrote:
> what don't you understand? delgroup --only-if-empty returns error code
> 1, if the group is not empty. what context do you need? in which
> situation do I need that return value, if the option --only-if-empty
> is already there?

I apologize. I didn't see that the vital information was given in the

delgroup exits with an error return value if a command cannot be
executed. delgroup --only-if-empty cannot be executed if the group is
non-empty. Hence, it is the correct thing to exit with a non-zero exit

I agree that return codes should be documented in the man page. Since
the man page doesn't document this for any option and any command,
this would be a major overhaul of the man pages. A patch is appreciated.


P.S. please don't top post, and don't call me babe^wdude

Marc Haber         | "I don't trust Computers. They | Mailadresse im Header
Mannheim, Germany  |  lose things."    Winona Ryder | Fon: *49 621 72739834
Nordisch by Nature |  How to make an American Quilt | Fax: *49 621 72739835

More information about the Adduser-devel mailing list