标签: javascript node.js exec
var exec = require('child_process').exec child = exec('export KEY="SOMEVALUE"', function(err, stdout, stderr){ console.log(process.env.KEY) })
是否打印
SOMEVALUE
(或)
undefined
它打印未定义,但子进程shell命令效果是否传播回父进程?