Function 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.

Prototypes

const(string) escapeShellArg(
  const(string) str
);

string escapeShellArg(
  Path path
);

Authors

Nick Sabalausky

Copyright

Copyright (C) 2014-2017 Nick Sabalausky

License

zlib/libpng