Function shli::split::split

source · []
pub fn split(cmdline: &str) -> Vec<String>
Expand description

Splits a commandline into its components/arguments. Works similar to split_whitespace.

The main difference to split_whitespace is: It respects whitespace escaping (", ', \) as well as escaping of the escaping characters (\", '\', …). Thus, strings ("A B C") will show up as single arguments.