[−][src]Crate quotemeta
Shell-quoting, à la Perl's quotemeta
function.
This crate currently provides a single quotemeta
function which shell-escapes a filename or
other data. It is anticipated that it may expand to include fine-tuning of the escaping
strategy, but for now it will return the input as-is if there are no troublesome characters,
otherwise single-quoted if it is printable ASCII without single-quotes, otherwise it'll break
out the big guns of "ANSI-C
Quoted"
for input which contains control codes or UTF-8 text.
Functions
quotemeta | Shell-quotes the given |