spawnShell
- Pid spawnShell(const(char)[] command, File stdin, File stdout, File stderr, string[string] env, Config config, const(char)[] workDir, string shellPath)
@trusted
spawnShell
(,,,,scope const string[string] env = null ,,,) - Pid spawnShell(const(char)[] command, string[string] env, Config config, const(char)[] workDir, string shellPath)
std process
classesenumsfunctionspropertiesstructs
A variation on spawnProcess that runs the given command through the current user's preferred command interpreter (aka. shell).
The string command is passed verbatim to the shell, and is therefore subject to its rules about command structure, argument/filename quoting and escaping of special characters. The path to the shell executable defaults to nativeShell.
In all other respects this function works just like spawnProcess. Please refer to the spawnProcess documentation for descriptions of the other function parameters, the return value and any exceptions that may be thrown.