On Fri, 11 Feb 2000, Matt Herbert wrote:
> A note on this:  The filename has to be an exact path or it
> won't work (it took me forever to realize this).  That is,
> 
>       rpm -qf ls        # Does not work
>       rpm -qf /bin/ls   # works

  Actually, RPM uses the CWD (current working directory) to determine the path
to a file, just like any other program.

        cd /bin ; rpm -qf ls

... works just fine.  But

        cd $HOME; rpm -qf ls

... tells RPM to look for "$HOME/ls" instead.  Programs (such as the shell)
which search $PATH for files are the exception, not the rule.  Just FYI.  :)

-- 
Ben Scott
[EMAIL PROTECTED]


**********************************************************
To unsubscribe from this list, send mail to
[EMAIL PROTECTED] with the following text in the
*body* (*not* the subject line) of the letter:
unsubscribe gnhlug
**********************************************************

Reply via email to