query
On this page

escapeShellArgs

lib.strings.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'"

Noogle detected

Aliases

Implementation

The following is the current implementation of this function.

escapeShellArgs = concatMapStringsSep " " escapeShellArg;