From e552f97db129899816a6ea3925d2a0ec569112aa Mon Sep 17 00:00:00 2001 From: anseki Date: Sun, 8 Mar 2015 13:54:55 +0900 Subject: [PATCH] Try to get Windows shell-path from environment variables. --- lib/readline-sync.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/readline-sync.js b/lib/readline-sync.js index 170ac14..0235541 100644 --- a/lib/readline-sync.js +++ b/lib/readline-sync.js @@ -10,7 +10,7 @@ var IS_WIN = process.platform === 'win32', - SHELL_PATH = IS_WIN ? 'cmd.exe' : '/bin/sh', + SHELL_PATH = IS_WIN ? process.env.comspec || 'cmd.exe' : '/bin/sh', SHELL_CMD = __dirname + (IS_WIN ? '\\read.bat' : '/read.sh'), ALGORITHM_CIPHER = 'aes-256-cbc', ALGORITHM_HASH = 'sha256',