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

Re: command -v in postinsts violating policy



On Wed, May 29, 2002 at 02:20:32AM +0200, Kjetil Torgrim Homme wrote:

> you mean quiet versions of
> 
>   getent passwd $user >/dev/null
>   getent group $group >/dev/null
> 
> ?  I don't see the point, really.

As long as getent will never write to stderr if the specified entry does not
exist, I see no problem with using it for checking the existence of users.
The man page is sparse, though, and the source is part of a large package,
so I can't verify this at the moment.

But the original point was finding a tool which determines, quietly, whether
a particular command exists in the path.

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

Horse-hockey.  An additional utility doesn't make Debian incompatible any
more than dpkg does, or adduser, or update-alternatives.

-- 
 - mdz


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



Reply to: