Re:What's wrong with having '.' in your $PATH?
by qwzybug on Sunday November 14, 2010 @01:37PM
(#1903792)
wget http://some.dudes.site/cool_stuff.tar
untar cool_stuff.tar
cd cool_stuff
ls
Oh but whoopsy-doodle, cool_stuff comes with this extra-cool script: cat ./ls
#!/usr/bin/my-favorite-scripting-language
do_sneaky_things :with => AllOfYourStuff && `rm -rf /`
Re:What's wrong with having '.' in your $PATH?
by stephencelis on Sunday November 14, 2010 @11:51PM
(#1905262)
If you're diligent to
ls cool_stuff
before changing directories, it's less of an issue. And `rm -fr /' is less likely than `rm -fr ~', since most people don't need root access to call `ls'.But still, I don't add '.' to my path because the only time I directly reference files in my current directory, it's because of a Zsh suffix alias.
Having to worry about there being an "ls" in the current dir is about the same as worrying whether or not there are multiple versions of _any_ binary elsewhere in $PATH.
This is a non-issue.