function drush_has_bash

8.0.x environment.inc drush_has_bash($os = NULL)
6.x environment.inc drush_has_bash($os = NULL)
7.x environment.inc drush_has_bash($os = NULL)
5.x environment.inc drush_has_bash($os = NULL)
master environment.inc drush_has_bash($os = NULL)

Checks if the operating system has bash.

MinGW has bash, but PHP isn't part of MinGW and hence doesn't run in bash.

4 calls to drush_has_bash()
drush_adjust_args_if_shebang_script in includes/command.inc
Special checking for "shebang" script handling.
drush_bit_bucket in includes/environment.inc
Checks operating system and returns supported bit bucket folder.
drush_build_drush_command in includes/environment.inc
Build a drush command suitable for use for Drush to call itself e.g. in backend_invoke.
drush_start_browser in includes/exec.inc
Starts a background browser/tab for the current site or a specified URL.

File

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

Code

function drush_has_bash($os = NULL) {
  return (drush_is_cygwin($os) && !drush_is_mingw($os)) || !drush_is_windows($os);
}