windows nodejs child_process exec echo 总是打印 childProcess 实例
windows nodejs child_process exec echo always print childProcess instance
像这样:
我试过 cmd.exe、powershell.exe、git-bash.exe,它们都有这种行为。为什么?
如果评估的 REPL 输入是一个表达式,评估结果将打印在控制台中,否则将打印 undefined
。
作为the reference states, childprocess_exec()
returns child process对象:
Returns: <ChildProcess>
像这样:
我试过 cmd.exe、powershell.exe、git-bash.exe,它们都有这种行为。为什么?
如果评估的 REPL 输入是一个表达式,评估结果将打印在控制台中,否则将打印 undefined
。
作为the reference states, childprocess_exec()
returns child process对象:
Returns:
<ChildProcess>