function drush_is_windows

8.0.x environment.inc drush_is_windows($os = NULL)
6.x environment.inc drush_is_windows($os = NULL)
7.x environment.inc drush_is_windows($os = NULL)
4.x drush.inc drush_is_windows()
5.x environment.inc drush_is_windows($os = NULL)
master startup.inc drush_is_windows($os = NULL)

Check if the operating system is Windows. This will return TRUE under DOS, Powershell Cygwin and MSYSGIT shells, so test for the Windows variant FIRST if you care.

26 calls to drush_is_windows()
drush_build_drush_command in includes/environment.inc
Build a drush command suitable for use for Drush to call itself e.g. in backend_invoke.
drush_correct_absolute_path_for_exec in includes/filesystem.inc
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_escapeshellarg in includes/exec.inc
Platform-dependent version of escapeshellarg(). Given the target platform, return an appropriately-escaped string. The target platform may be omitted for args that are /known/ to be for the local machine. Use raw to get an unquoted version of the…
drush_find_tmp in includes/filesystem.inc
Returns the path to a temporary directory.
drush_format_table in includes/output.inc
Format a table of data.

... See full list

File

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

Code

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