Skip to main content

split_shell_words_with

Function split_shell_words_with 

Source
pub fn split_shell_words_with(
    command: &str,
    style: ShellQuotingStyle,
) -> Option<Vec<String>>
Expand description

Split a command line into shell words, reversing quote_shell_arg_with for the same dialect: a POSIX shell escapes with a backslash, PowerShell has no backslash escape (it is a path separator) and writes a literal quote as a doubled one.

Returns None when quoting is unbalanced.