function drush_is_cygwin

8.0.x drush_is_cygwin($os = NULL)
6.x drush_is_cygwin($os = NULL)
7.x drush_is_cygwin($os = NULL)
5.x drush_is_cygwin($os = NULL)
master drush_is_cygwin($os = NULL)

Check if the operating system is Winodws running some variant of cygwin -- either Cygwin or the MSYSGIT shell. If you care which is which, test mingw first.

3 calls to drush_is_cygwin()
drush_correct_absolute_path_for_exec in includes/
If we are going to pass a path to exec or proc_open, then we need to fix it up under CYGWIN or MINGW. In both of these environments, PHP works with absolute paths such as "C:\path". CYGWIN expects these to be converted to…
drush_has_bash in includes/
Checks if the operating system has bash.
_drush_convert_path in includes/
Converts a Windows path (dir1\dir2\dir3) into a Unix path (dir1/dir2/dir3). Also converts a cygwin "drive emulation" path (/cygdrive/c/dir1) into a proper drive path, still with Unix slashes (c:/dir1).


includes/, line 511
Functions used by drush to query the environment and setting the current configuration.


function drush_is_cygwin($os = NULL) {
  return _drush_test_os($os, array("CYGWIN", "CWRSYNC", "MINGW"));