Closed petemounce closed 12 years ago
Honestly, I'm surprised by this. Cygwin is supposed to be using a stock bash
shell. Why would its file redirection be different? Also, what does RbConfig::CONFIG['host_os']
return on Cygwin if not something that matches /mswin|mingw/
?
Do the tests fail on Cygwin?
Closing this due to inactivity.
Thanks, -Mike
The
unix?
method didn't support windows/cygwin shells. By making the test include looking for the SHELL environment variable, support is added (windows environment doesn't set this, soecho %SHELL%
in a cmd.exe returns nil). Thanks http://www.cyberciti.biz/tips/how-do-i-find-out-what-shell-im-using.html .Also, I think the
bit_bucket
should be&2>/dev/null
for unix shells - without that, in windows/cygwin, I get a path-not-found, anyway. I assume that's the same for real unix shells.