[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: command -v in postinsts violating policy



Matt Zimmerman <mdz@debian.org> writes:

> In general, I agree.  In this case, I think that this is a
> sufficiently common problem that it justifies the existence of a
> tool.  Another such instance would be a simple program to check for
> the existence of a user or group, which seems to be done in all
> sorts of weird ways in maintainer scripts.

you mean quiet versions of

  getent passwd $user >/dev/null
  getent group $group >/dev/null

?  I don't see the point, really.  now, if you needed to throw away
stderr, I'd agree.  so don't use

  id $user >/dev/null 2>&1

adding another tiny utility will just make Debian more incompatible
with every other Unix for little benefit.


Kjetil T.



-- 
To UNSUBSCRIBE, email to debian-devel-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: