escapeShellArg

Properly escape arguments containing spaces for the command shell, if necessary.

Although Path doesn't stricktly need this (since Path.toString automatically calls this anyway), an overload of escapeShellArg which accepts a Path is provided for the sake of generic code.

  1. const(string) escapeShellArg(in string str)
    const(string)
    escapeShellArg
    (
    in string str
    )
  2. string escapeShellArg(Path path)

Meta