Noogλe

search input

Function of the day

  • 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'"