Escapes an argv-style argument array to be used with spawnShell, pipeShell or executeShell.
string url = "http://dlang.org/"; executeShell(escapeShellCommand("wget", url, "-O", "dlang-index.html"));
Concatenate multiple escapeShellCommand and escapeShellFileName results to use shell redirection or piping operators.
executeShell( escapeShellCommand("curl", "http://dlang.org/download.html") ~ "|" ~ escapeShellCommand("grep", "-o", `http://\S*\.zip`) ~ ">" ~ escapeShellFileName("D download links.txt"));
$(OBJECTREF Exception) if any part of the command line contains unescapable characters (NUL on all platforms, as well as CR and LF on Windows).
See Implementation
Escapes an argv-style argument array to be used with spawnShell, pipeShell or executeShell.
Concatenate multiple escapeShellCommand and escapeShellFileName results to use shell redirection or piping operators.