Safe Haskell | None |
---|---|
Language | Haskell98 |
Shell quoting
Documentation
A value that is safely quoted so that it can be exposed to the shell.
While the constructor is exposed, you should avoid directly constucting
Quoted values. Instead, use quote
.
Quotes a value to allow it to be safely exposed to the shell.
The method used is to replace ' with '"'"' and wrap the value inside single quotes. This works for POSIX shells, as well as other shells like csh.