pub fn has_shell_escapes(command: &str) -> boolExpand description
Detect backslash escapes that a real shell removes but the lightweight built-in command path keeps verbatim.
Commands like this are routed to the system shell, which is the only way to get exactly the POSIX result - important now that interpolating a value into a quoted position escapes it (issue #49).
ยงExamples
use command_stream::quote::has_shell_escapes;
assert!(has_shell_escapes("echo \"5 \\$US\""));
assert!(!has_shell_escapes("echo \"plain\""));
assert!(!has_shell_escapes("echo 'a \\$b'"));