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

Re: command -v in postinsts violating policy



On Sat, May 25, 2002 at 05:09:53PM -0400, Clint Adams wrote:
> > I would file the bugs to change the script and not to change the
> > interpreter.  Maintainers can achive the same goal of 'command' with
> > either 'type' or 'which'.
> 
> Sorry; I misspoke before.  `type' is not mandated by POSIX, and `which'
> isn't even mentioned.

But `which' is in debianutils, that is base. It can be used by maintainer
script without breaking the package installation procedure.

> `command -v' and `type' do not do exactly the same thing.

Examinating the use of `command -v' in scripts, I supposed `which' to be a
good candidate in most cases.

ciao,
-- 
Luca - De Whiskey's - De Vitis              | Elegant or ugly code as well
aliases: Luca ^De [A-Z][A-Za-z\-]*[iy]'\?s$ | as fine or rude sentences have
Luca, a wannabe ``Good guy''.               | something in common: they
local LANG="it_IT@euro"                     | don't depend on the language.


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



Reply to: