gix_quote

Function single

source
pub fn single(value: &BStr) -> BString
Expand description

Transforms the given value to be suitable for use as an argument for Bourne shells by wrapping it into single quotes.

Every single-quote ' is escaped with \', every exclamation mark ! is escaped with \!, and the entire string is enclosed in single quotes.