which and the current directory
Vernon Schryver
vjs at rhyolite.wpd.sgi.com
Mon Mar 25 10:01:01 AEST 1991
In article <3531 at lamont.ldgo.columbia.edu>, dale at lamont.ldgo.columbia.edu (dale chayes) writes:
> I found (after too much exploration (;-)) that /usr/bsd/which will not
> find an executable in the current directory if is specified in the
> environment's $path as in:
>
> set path = (. ~/bin /usr/bsd /bin /usr/bin /usr/sbin /usr/local/bin)
>
> The shell (at least csh) finds them with out trouble (as
> long as they are really there!)
> How come? (I can't believe that this hasn't turned up before.
There must be something else going on, since it works for me.
No doubt you know that `set path = ..` does not set the environment
directly, but sets a csh variable that sets the environment variable PATH.
/usr/bsd/which is just a csh script. It even has comments.
`csh -x /usr/bsd/which foobaz` might illuminate what is going on.
Vernon Schryver, vjs at sgi.com
More information about the Comp.sys.sgi
mailing list