function drush_get_editor

8.0.x exec.inc drush_get_editor()
6.x exec.inc drush_get_editor()
7.x exec.inc drush_get_editor()
5.x exec.inc drush_get_editor()
master exec.inc drush_get_editor()

Related topics

1 call to drush_get_editor()
drush_core_config in commands/core/core.drush.inc
Command callback. Edit drushrc and alias files.

File

includes/exec.inc, line 90

Code

function drush_get_editor() {
  $bg = drush_get_option('bg') ? '&' : '';
  // see http://drupal.org/node/1740294
  $exec = drush_get_option('editor', '${VISUAL-${EDITOR-vi}}') . " %s $bg";
  return $exec;
}