From 3103682efd678bea8862ef2fd52a85dbb4e0cf32 Mon Sep 17 00:00:00 2001 From: Max Brunsfeld Date: Tue, 9 Aug 2016 14:25:25 -0700 Subject: [PATCH] Bypass aliases when running env shell command --- src/update-process-env.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/update-process-env.js b/src/update-process-env.js index 6de00c931..95d468274 100644 --- a/src/update-process-env.js +++ b/src/update-process-env.js @@ -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')) {