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)

Determine whether current OS is a Windows variant.

25 calls to drush_is_windows()
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/startup.inc
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.
drush_get_tar_executable in includes/environment.inc
Return tar executable name specific for the current OS

... See full list

File

includes/startup.inc, line 131
Functions used when Drush is starting up.

Code

function drush_is_windows($os = NULL) {
  return strtoupper(substr($os ? : PHP_OS, 0, 3)) === 'WIN';
}