Noogλe

search input

Function of the day

  • Quote string to be used safely within the Bourne shell if it has any special characters.

    Inputs

    string
    1. Function argument

    Type

    escapeShellArg :: string -> string
    

    Examples

    lib.strings.escapeShellArg usage example

    escapeShellArg "esc'ape\nme"
    => "'esc'\\''ape\nme'"