Re: command -v in postinsts violating policy
>>"Jim" == Jim Lynch <jim@laney.edu> writes:
Jim> On Mon, 27 May 2002 10:03:26 +0200
Jim> Luca - De Whiskey's - De Vitis <luca@linuxasylum.net> wrote:
>> We can send a wishlist bug to debianutils to add a flag to which in
>> order to be quiet: -q|--quiet?
Jim> But now you have disabled the entire functionality of which, and that is
Jim> to send to stdout the first found in $PATH, full path to the specified
Jim> executable.
Not quite. Indeed, I never look at the output of which in
maintianer scripts.
Jim> `which` does not itself execute commands; it finds them by searching the
Jim> $PATH and then echoes them.
Jim> If you make it quiet, it will be about as useful as
Jim> echo "" > /dev/null
Wrong again.
if which file 2>&1 >/dev/null; then
file blah
fi
Is useful, even if the output is being discarded.
manoj
--
Even if a fool were to take his food month after month off the tip of
a blade of grass, he would still not be worth a fraction of those who
have understood the truth. 70
Manoj Srivastava <srivasta@debian.org> <http://www.debian.org/%7Esrivasta/>
1024R/C7261095 print CB D9 F4 12 68 07 E4 05 CC 2D 27 12 1D F5 E8 6E
1024D/BF24424C print 4966 F272 D093 B493 410B 924B 21BA DABB BF24 424C
--
To UNSUBSCRIBE, email to debian-devel-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Reply to: