On Fri, 8 Jul 2011, Chris Blouch wrote:
I'm assuming you meant
export PATH=$PATH:./
There shouldn't be any need for a trailing slash. If I echo $PATH I see:
/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin
No trailing slashes there.
I guess I wasn't all that concerned about malicious scripts living in my home
directory with the same name as a real command. So somebody somehow puts a
script called "ls" in my home directory in the hopes that I may have modified
my path to put ./ first seems a bit of a stretch. At least if they could drop
a script file they could probably also drop a new .profile to alias ls to
their bad script located somewhere else less noticeable.
They could, but you'd have to logout and back in again for it to take
effect.
Geoff.
--
You received this message because you are subscribed to the Google Groups
"MacVisionaries" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/macvisionaries?hl=en.