function _drush_shell_exec_output_set

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

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


$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/
Returns the output of the most recent shell command as an array of lines.
_drush_shell_exec in includes/
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…


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


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