This one time, at band camp, Matthias Klose said:
> Package: adduser
> 
> What sense makes this return status of 1 in combination with
> --only-if-empty? At least it should be documented in the man page.

Er, it exits 5 if the group isn't empty.  Can't that be tested for and
dealt with?  I agree that having all error codes be the same would be
silly, but that's not the case:

[EMAIL PROTECTED]:~$ sudo delgroup --only-if-empty adm
/usr/sbin/delgroup: The group `adm' is not empty!
[EMAIL PROTECTED]:~$ echo $?
5

Take care,
-- 
 -----------------------------------------------------------------
|   ,''`.                                            Stephen Gran |
|  : :' :                                        [EMAIL PROTECTED] |
|  `. `'                        Debian user, admin, and developer |
|    `-                                     http://www.debian.org |
 -----------------------------------------------------------------

Attachment: signature.asc
Description: Digital signature

Reply via email to