Skip to main content

split_commands

Function split_commands 

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

Split a shell command into subcommands, respecting quotes. Splits on the control operators upstream’s parser treats as command boundaries: &&, ||, ;, |, &, and newlines.