I'm not sure what I did, but I've somehow got Cygwin installed in such a way that even when I try to run an ordinary windows shell, Cygwin is interfering. I have batch scripts that I want to run in the default windows way that Cygwin complains about. I can't change them; I need to run them in the felaut shell. Is there any way to get my cmd shell back without completely uninstalling cygwin?
More information:
I'm running a Windows batch script that launches a windows executable. I can't change the script OR the executable. These are things that other people use, so they have to stay the way they are. When I run the script, there are some paths that it searches for and automatically generates to pass to the executable (or perhaps the executable generates them for itself). Unfortunately, partway through that process, the exe complains that it can't find D:\foo\bar\baz... because cygwin has tried to 'fix' the path.
If I delete the cygwin1.dll while I run the batch file, I get an error that cygwin wasn't found. So even though I'm in a Windows CMD shell (with the windows prompt), I'm clearly still getting interference from cygwin.
I've removed cygwin from my path all together, and now the script works. To run cygwin, I now have to navigate to the cygwin directory explicitly, run bash, and make sure that bash modifies the path to have the cygwin/bin directory in it.
I mainly want a way to run scripts in a default windows environment with default windows paths because I'm not 100% in control of the scripts and executables that need to be run as a part of my day-to-day work, and it's wildly inefficient for me to go and rewrite every script that doesn't play nice with cygwin.
(It's worth noting that running the script using 'cmd /c script.bat' from the Win-R run box works just fine.)
cygpath
.