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.

Related topics

3 calls to drush_is_windows()
drush_escapeshellarg in includes/drush.inc
Platform-independent version of escapeshellarg(). This only works for local commands. TODO: Make a unified drush_escapeshellarg that works on Linux and Windows.
drush_tarball_extract in includes/drush.inc
Extract a tarball.
_drush_recursive_copy in includes/drush.inc
Internal function called by drush_copy_dir; do not use directly.

File

includes/drush.inc, line 1395
The drush API implementation and helpers.

Code

function drush_is_windows() {
  if (substr(php_uname(), 0, 7) == 'Windows') {
    return TRUE;
  }
  else {
    return FALSE;
  }
}