pub fn unquote(source: &str) -> Result<String, UnquoteError>
Expand description
Unquote String
Unquote a single string according to POSIX Shell quoting and escaping rules. If the input string is not a valid input, the operation will fail and provide diagnosis information on where the first invalid part was encountered.
The result is canonical. There is only one valid unquoted result for a given input.
Examples
assert_eq!(r_shquote::unquote("foobar").unwrap(), "foobar");