Red Hat Bugzilla – Bug 193442
sometime "which" just fails to find a file
Last modified: 2007-11-30 17:11:34 EST
Description of problem:
$ ll /usr/sbin/privoxy
-rwxr--r-- 1 privoxy privoxy 190480 Mar 2 2005 /usr/sbin/privoxy*
$ which /usr/sbin/privoxy
which: no privoxy in (/usr/sbin)
Version-Release number of selected component (if applicable):
$ rpm -qf /usr/bin/which
with that file, always.
The problem is that /usr/sbin is not in PATH. which only looks the programname
in the PATH.
You have to add PATH=/usr/sbin:$PATH.
Ha, ha, ha! No, /usr/sbin _is_ in my $PATH, and so this is a bit odd.
I'm now using which-2.16-6.2.1, and which still couldn't find "privoxy" on a bet.
So, unless there is some hardcoded PATH in "which", the "NotABug" label is
wishful thinking. Look a little deeper...
This report targets the FC3 or FC4 products, which have now been EOL'd.
Could you please check that it still applies to a current Fedora release, and
either update the target product or close it ?
it's not reproduceable in F8.