query
On this page

escapeShellArgs

lib.escapeShellArgs

Docs pulled from | This Revision | 10 minutes ago


Quote all arguments that have special characters to be safely passed to the Bourne shell.

Inputs

args
1. Function argument

Type

escapeShellArgs :: [string] -> string

Examples

lib.strings.escapeShellArgs usage example

escapeShellArgs ["one" "two three" "four'five"]
=> "one 'two three' 'four'\\''five'"
(lib.strings.escapeShellArgs)

Noogle detected

Aliases