Skip to content

Commit 3990b42

Browse files
isaacsruyadorno
authored andcommitted
use sh as default unix shell, not bash
PR-URL: #2067 Credit: @isaacs Close: #2067 Reviewed-by: @nlf
1 parent d4119b0 commit 3990b42

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/utils/config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const editor = process.env.EDITOR ||
2121
(isWindows ? 'notepad.exe' : 'vi')
2222

2323
const shell = isWindows ? process.env.ComSpec || 'cmd'
24-
: process.env.SHELL || 'bash'
24+
: process.env.SHELL || 'sh'
2525

2626
const { tmpdir, networkInterfaces } = require('os')
2727
const getLocalAddresses = () => {

test/lib/utils/config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ t.test('no shell on posix', t => {
138138
'@npmcli/ci-detect': () => false,
139139
'../../../lib/utils/is-windows.js': false
140140
})
141-
t.equal(config.defaults.shell, 'bash')
141+
t.equal(config.defaults.shell, 'sh')
142142
t.end()
143143
})
144144

0 commit comments

Comments
 (0)