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.

Related topics

3 calls to drush_is_windows()
drush_escapeshellarg in includes/
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/
Extract a tarball.
_drush_recursive_copy in includes/
Internal function called by drush_copy_dir; do not use directly.


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


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