Functions to execute commands.

  1. 8.0.x includes/ commandwrappers
  2. 6.x includes/ commandwrappers
  3. 7.x includes/ commandwrappers
  4. 4.x includes/ commandwrappers
  5. 5.x includes/ commandwrappers
  6. master includes/ commandwrappers


Namesort ascending Location Description
_drush_shell_exec_output_set includes/ Stores output for the most recent shell command. This should only be run from drush_shell_exec().
_drush_shell_exec 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…
_drush_escapeshellarg_windows includes/ Windows version of escapeshellarg().
drush_wrap_with_quotes includes/ Make an attempt to simply wrap the arg with the kind of quote characters it does not already contain. If it contains both kinds, then this function reverts to drush_escapeshellarg.
drush_which includes/ Determine whether 'which $command' can find a command on this system.
drush_start_browser includes/ Starts a background browser/tab for the current site or a specified URL.
drush_shell_proc_open includes/ Execute bash command using proc_open().
drush_shell_proc_build includes/ Build an SSH string including an optional fragment of bash. Commands that use this should also merge drush_shell_proc_build_options() into their command options.
drush_shell_exec_proc_build_options includes/ Used by definition of ssh and other commands that call into drush_shell_proc_build() to declare their options.
drush_shell_exec_output includes/ Returns the output of the most recent shell command as an array of lines.
drush_shell_exec_interactive includes/ Executes a command in interactive mode.
drush_shell_exec includes/ Executes a shell command. Output is only printed if in verbose mode. Output is stored and can be retrieved using drush_shell_exec_output(). If in simulation mode, no action is taken.
drush_shell_cd_and_exec includes/ Executes a shell command at a new working directory. The old cwd is restored on exit.
drush_remote_host includes/ Determine the remote host (username@hostname.tld) for the specified site.
drush_os includes/ Determine the appropriate os value for the specified site record
drush_op_system includes/ Calls 'system()' function, passing through all arguments unchanged.
drush_get_editor includes/ Returns executable code for invoking preferred test editor.
drush_escapeshellarg includes/ Platform-dependent version of escapeshellarg(). Given the target platform, return an appropriately-escaped string. The target platform may be omitted for args that are /known/ to be for the local machine. Use raw to get an unquoted version of the…


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