Bypass aliases when running env shell command

This commit is contained in:
Max Brunsfeld
2016-08-09 14:25:25 -07:00
parent e6514bf3d8
commit 3103682efd

View File

@@ -32,7 +32,7 @@ export default function updateProcessEnv (launchEnv) {
function getEnvFromShell () {
let shell = process.env.SHELL
if (shell && (shell.endsWith('/bash') || shell.endsWith('/sh'))) {
let {stdout} = spawnSync(shell, ['-ilc', 'env'], {encoding: 'utf8'})
let {stdout} = spawnSync(shell, ['-ilc', 'command env'], {encoding: 'utf8'})
if (stdout) {
let result = {}
for (let line of stdout.split('\n')) {