Function git_status_vars::shell_quote
source · pub fn shell_quote<V: Display>(value: V) -> String
Expand description
Quote a value for safe shell insertion.
use git_status_vars::shell_quote;
assert_eq!(shell_quote("a $b `c`\nd"), "'a $b `c`\nd'");