Re: command -v in postinsts violating policy
On Mon, May 27, 2002 at 07:52:14AM -0700, Jim Lynch wrote:
> (man which will be useful to verify this, altho it's not all that
> specific: in that context, "returns" is really "streams to stdout,"
> and -not- "returned as exit status," which wouldn't make sense for a
> string anyway. Know your commands... it's useful when you're posting
> about them :)
You can say many things about me, but not that i'm a newbe :)
I know what my tools are, and sometime i go over the man.
This is which:
#!/bin/bash
unalias -a
unset -- "$@" &> /dev/null
enable -n -- "$@" &> /dev/null
type -p "$@"
And bash builtin `type' explain its usage: 2 or 3 tests and then i write an
email.
replacing the last line with:
type -p -- "$@"
would make `which` behave as asked in #146352.
I do not agree on this, as i stated before.
So now, what about -q|--quiet?
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: