Skip to main content

split_command

Function split_command 

Source
pub fn split_command(input: &str) -> Result<Vec<String>, ShellwordsError>
Expand description

Splits a command string into words, honoring single/double quotes and backslash escapes outside of quotes. Ported (narrowly) from mattn/go-shellwords’s Parse.