> So, should it default to finding an executable on the path first and > then look for MinGW/MSYS versions of the program if it can't find > the executable on the path?
Hmmm... 99% of the cases will be "#!/bin/sh" anyway. What's the "right" shell to run for that in MinGW? If you can detect MinGW[*], and check the right MinGW places first, that's probably the best solution. [*] I'm thinking of an #ifdef in libiberty, nothing fancy.