On Tue, 29 Jun 1999, tom carlile wrote:

> typically your PATH is set in your ~/.bash_profile file or your ~/.bashrc file.
> but quickly you can just do:
> export PATH=$PATH:<insert new dir here>
> 
> "Yasin A. Vohra" wrote:
> 
> >         How do I chnage my PATH so that the SHELL prompt look sin my
> > current directory first.

Technically, he did say "first."  I believe the path is read left to
right.  Thus, he should do something like
export PATH=.:${PATH} 
to have the SHELL look in the current directory (".") first.

Of course, Yasin also showed us what he was seeing as root.  You can do a
lot of damage as root.  I think that having the current directory nowhere
in root's search path is intentional.  You wouldn't want to be in some
random directory only to discover that it contains an executable by the
same name as some command you just tried to run.  That is, root should
probably just have the standard directories like /usr/bin in his PATH.
Then, if he *really* wants the "find" in the current directory, he has to
run the command explicitly:
./find

---Tom

-------------------------------------------
Tom Bryan
Applied Research Laboratories
University of Texas at Austin


---------------------------------------------------------------------------
Send administrative requests to [EMAIL PROTECTED]

Reply via email to