Skip to main content

shell_quote

Function shell_quote 

Source
pub fn shell_quote(value: &str) -> String
Expand description

POSIX single-quote shell quoting.

Wraps value in single quotes and escapes any embedded single quote with the canonical '\'' sequence. The empty string renders as ''. Pasting the output into a POSIX shell preserves the original byte sequence.