默认 Windows shell
¥Default Windows shell
虽然 Microsoft 指定 %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.