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

Safe HaskellSafe




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.