On Mon, Feb 2, 2009 at 8:27 AM, John Matthews <[email protected]> wrote:
> However, it wouldn't work if the user had run an executable in a
> non-PATH directory with the same name as an executable in a PATH
> directory.
Yes, that is what I was saying, you can defeat the executable path
search, which makes the 'which' command not entirely reliable. Of
course, on Unix systems, you could also be running symlinks to
executables (some shell programs may even behave differently based on
what command they were invoked with).
-- Brett
------------------------------------------------------------
"In the rhythm of music a secret is hidden;
If I were to divulge it, it would overturn the world."
-- Jelaleddin Rumi