thoughtbot/cocaine — pull request #14 by petemounce (2012-04-10 17:00:56+00:00)
Title: Fix swallow_stderr for windows/cygwin shells

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, so `echo %SHELL%` in a cmd.exe returns nil).

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.