function drush_is_windows

8.0.x drush_is_windows($os = NULL)
6.x drush_is_windows($os = NULL)
7.x drush_is_windows($os = NULL)
4.x drush_is_windows()
5.x drush_is_windows($os = NULL)
master 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.

25 calls to drush_is_windows()
drush_build_drush_command in includes/
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/
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/
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.
drush_find_tmp in includes/
Returns the path to a temporary directory.
drush_get_tar_executable in includes/
Return tar executable name specific for the current OS

... See full list


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


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