Skip to main content

quote

Function quote 

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

s as one POSIX shell word: plain words stay as they are, anything else is single-quoted with embedded ' written as '\''. Every suggested command that embeds a path, id, or other user value goes through this one function.