function drush_has_bash

8.0.x drush_has_bash($os = NULL)
6.x drush_has_bash($os = NULL)
7.x drush_has_bash($os = NULL)
5.x drush_has_bash($os = NULL)
master 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/
Special checking for "shebang" script handling.
drush_bit_bucket in includes/
Checks operating system and returns supported bit bucket folder.
drush_build_drush_command in includes/
Build a drush command suitable for use for Drush to call itself e.g. in backend_invoke.
drush_start_browser in includes/
Starts a background browser/tab for the current site or a specified URL.


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


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