Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

It’s been known for decades that you should never put your current directory in your PATH. There are endless opportunities for vulnerabilities then. I learned this in college in the 80’s (by not following it and getting owned).


Yet PowerShell does it by default.


I don't think it does?

   > cd C:\Temp
   > copy "C:\Program Files\Git\bin\git.exe" .\fred.exe
   > fred
   fred: The term 'fred' is not recognized as a name of a cmdlet, function, script file, or executable program.
   Check the spelling of the name, or if a path was included, verify that the path is correct and try again.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: