--- [EMAIL PROTECTED] wrote:
> Perhaps the confusion here is that Windows looks in the logged
> directory
> FIRST and executes "namedcommand" if found. If the "namedcommand" is not
> found it then searches the path, in order, and executes the first match it
>
> finds. I found this handy and will alter my bash preferences to search
> the
> local directory first, as suggested by Jim and others. Thanks, didn't
> know
> this behavior was that easy to alter.
> -Gary-
>
If I could make a suggestion:
Make sure you don't do this with root, because if you do, the potential
exists to cause damage to your system.
Say someone uploads a command "ls" into the FTP directory. You go to the
FTP directory and type "ls," and the new "ls" command is executed instead of
the Linux standard one. Now, let's say that the new "ls" is a shell script
that does "rm -rf /*" ...
If you must put . into your path, put it _after_ the other entries in your
path, not before, so that the existing command is called before the one in
the current directory.
Just a thought, from an admitted newbie.
Greetings,
Adrian
=====
___________________________________________________________
"But how am I to know the good side from the bad?"
"You will _know._ When you are calm. At peace.
Passive." -Luke and Yoda
__________________________________________________
Do You Yahoo!?
Yahoo! Photos -- now, 100 FREE prints!
http://photos.yahoo.com