posix-escape-0.1: Quote arguments to be passed through the Unix shell

System.Posix.Escape

Description

Quote ASCII arguments to be passed through the Unix shell.

For safety, these functions drop all non-ASCII characters.

Synopsis

Documentation

escape :: String -> StringSource

Wrap a String so it can be used within a Unix shell command line, and end up as a single argument to the program invoked.

escapeMany :: [String] -> StringSource

Wrap some Strings as separate arguments, by inserting spaces before and after each. This will break if, for example, prefixed with a backslash.