guard/guard — pull request #365 by cablegram (2012-11-21 07:43:13+00:00)
Title: Replace /dev/null with NUL on Windows; Handle shell echo quotes

* Replace use of '/dev/null' with DEV_NULL, a constant that is evaluated at load time. This snippet for identifying Windows and calculating the null device name is copied from bundler (see https://github.com/carlhuda/bundler/blob/054329690071974180393a4f14ec3fa2984bc446/lib/bundler.rb#L65-67)
* Handle the case where quotes in the argument of an echo command may or may not be included in the result depending on OS. On Windows, the shell command "ECHO 'a'" returns "'a'" (with quotes). On Linux, the shell command "ECHO 'a'" returns "a" (without quotes).