function _drush_shell_exec_output_set

8.0.x exec.inc _drush_shell_exec_output_set($output = FALSE)
6.x exec.inc _drush_shell_exec_output_set($output = FALSE)
7.x exec.inc _drush_shell_exec_output_set($output = FALSE)
3.x drush.inc _drush_shell_exec_output_set($output = FALSE)
4.x drush.inc _drush_shell_exec_output_set($output = FALSE)
5.x exec.inc _drush_shell_exec_output_set($output = FALSE)
master exec.inc _drush_shell_exec_output_set($output = FALSE)

Stores output for the most recent shell command. This should only be run from drush_shell_exec().

Parameters

array|bool $output: The output of the most recent shell command. If this is not set the stored value will be returned.

Related topics

2 calls to _drush_shell_exec_output_set()
drush_shell_exec_output in includes/exec.inc
Returns the output of the most recent shell command as an array of lines.
_drush_shell_exec in includes/exec.inc
Internal function: executes a shell command on the local machine. This function should not be used in instances where ssh is utilized to execute a command remotely; otherwise, remote operations would fail if executed from a Windows machine to a…

File

includes/exec.inc, line 368
Functions for executing system commands. (e.g. exec(), system(), ...).

Code

function _drush_shell_exec_output_set($output = FALSE) {
  static $stored_output;
  if ($output === FALSE) {
    return $stored_output;
  }
  $stored_output = $output;
}