shell-utility-0.1: Utility functions for writing command-line programs

Safe HaskellSafe
LanguageHaskell98

Shell.Utility.Quote

Synopsis

Documentation

always :: String -> String Source #

Put a string in quotes and escape characters as necessary. This allows you to construct shell commands such that a shell interprets the arguments in the right way.

minimal :: String -> String Source #

Like always but encloses in quotes only if necessary.

lazy :: String -> String Source #

Similar to minimal but starts quoting only as soon as it becomes necessary. This is lazy both with respect to quoting and with respect to processing.