Skip to main content

shell_word

Function shell_word 

Source
pub fn shell_word(arg: &str) -> String
Expand description

arg as a POSIX shell reads it back: bare when it holds only safe characters, else single-quoted. Library code (validate’s next steps) and the CLI both word commands with it, so it lives outside cli.