Skip to main content

shell_quote

Function shell_quote 

Source
pub fn shell_quote(os: Os, text: &str) -> Result<String, CoreError>
Expand description

One argument of a command line run through the client’s shell: single quotes on Unix; double quotes on Windows. Which shell a Windows client uses (cmd.exe, or a POSIX shell such as Git Bash) is not settled (scripts/verify-clients.md DX-6, DX-7), so only text both read the same inside double quotes passes: ", %, $, a backtick, a line break and a trailing backslash are refused.