默认 Windows shell


【Default Windows shell】

尽管微软规定 %COMSPEC% 必须包含根环境下 'cmd.exe' 的路径,但子进程并不总是受相同要求的约束。因此,在可以生成 shell 的 child_process 函数中,如果 process.env.ComSpec 不可用,将使用 'cmd.exe' 作为备用。

【Although Microsoft specifies %COMSPEC% must contain the path to 'cmd.exe' in the root environment, child processes are not always subject to the same requirement. Thus, in child_process functions where a shell can be spawned, 'cmd.exe' is used as a fallback if process.env.ComSpec is unavailable.】