pub fn shell_single_quote(s: &str) -> StringExpand description
What: Safely single-quote an arbitrary string for POSIX shells.
Input:
s: Text to quote.
Output:
- New string wrapped in single quotes, escaping embedded quotes via the
' '"'"'sequence.
Details:
- Returns
''for empty input so the shell treats it as an empty argument.