From 041a39031c7d86a67e1065ba5a9e056ec8159d3b Mon Sep 17 00:00:00 2001 From: isaacs Date: Wed, 28 Oct 2020 10:50:23 -0700 Subject: [PATCH] use sh as default unix shell, not bash --- lib/utils/config.js | 2 +- test/lib/utils/config.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/utils/config.js b/lib/utils/config.js index 9af6289ffa0f4..f9de6e9a79220 100644 --- a/lib/utils/config.js +++ b/lib/utils/config.js @@ -21,7 +21,7 @@ const editor = process.env.EDITOR || (isWindows ? 'notepad.exe' : 'vi') const shell = isWindows ? process.env.ComSpec || 'cmd' - : process.env.SHELL || 'bash' + : process.env.SHELL || 'sh' const { tmpdir, networkInterfaces } = require('os') const getLocalAddresses = () => { diff --git a/test/lib/utils/config.js b/test/lib/utils/config.js index 293e68c00449d..e8133eecb24f1 100644 --- a/test/lib/utils/config.js +++ b/test/lib/utils/config.js @@ -138,7 +138,7 @@ t.test('no shell on posix', t => { '@npmcli/ci-detect': () => false, '../../../lib/utils/is-windows.js': false }) - t.equal(config.defaults.shell, 'bash') + t.equal(config.defaults.shell, 'sh') t.end() })