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)

Determine whether current OS is a Windows variant.

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

... See full list


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


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