I run emacs on windows. I use cygwin and I have cygwin versions of ruby and rdebug installed as well. When I invoke M-x comint-run ENTER rdebug ENTER, I noticed that it is attempting to run rdebug.bat via the Microsoft Command prompt, instead of using bash to run rdebug (without the .bat). I'd like comint-run to use bash to invoke any process that it is asked to start. Any ideas on how I can do this?
If you are interested in why I'm doing this, see here for the long story: http://stackoverflow.com/questions/2261071/ideas-for-troubleshooting-emacs-error-apply-spawning-child-process-exec-forma
Minor progress
I did some digging around in the elisp code for comint-run and it looks like it finally calls into start-process - unfortunately, here I'm stuck since start-process is a function defined in C source code. And start-process, for some reason, seems to ignore the values of explicit-shell-file-name and shell-file-name.