I use X64-based Win10. Recently, I started to use git, so I am switching the console to bash/mingw64. But I don't quite understand the way bash behaves.
I tried to kill a program, say notepad, via command line. Supposedly,
TASKKILL /IM notepad.exe
I check the help documentation of
taskkill in Bash. This line is in fact one of the EXAMPLES.
However, I got this error
$ TASKKILL /IM notepad.exe ERROR: Invalid argument/option - 'C:/Program Files/Git/IM'.
TASKKILL /PID <number> doesn't work either, and same error comes out.
May someone explain what might go wrong?
P.S. This can be solved by type
cmd, which then runs the command in
cmd and works. But it is kind of slow, and arrows don't work(annoying).