Skip to main content

shell_quote

Function shell_quote 

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

Shell-quote a string for safe interpolation into a remote shell command.

Wraps the value in single quotes and escapes any embedded single quotes using the '\'' idiom (end quote, escaped literal quote, restart quote).