Skip to main content

posix_single_quote

Function posix_single_quote 

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

Wrap s in single quotes for bash/sh/zsh, escaping each ' as '\''. Always quotes, so the result is one word whatever s contains.