Skip to main content

expanded_commands

Function expanded_commands 

Source
pub fn expanded_commands(command: &str) -> Vec<String>
Expand description

Returns every command line the shell would execute for command.

The raw input is always included first, so callers keep whatever matching they already did against it. Subsequent entries are the word-split, quote- stripped command lines drawn from top-level chaining, command substitutions, process substitutions, grouping, and wrapper payloads. Results are de-duplicated and order-stable.