Skip to main content

shell_join_arg

Function shell_join_arg 

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

Quote an argument for inclusion in a re-parsable shell command.

If the argument contains shell metacharacters or whitespace, it is single-quoted with internal single quotes escaped as '\''.