Skip to content

Commit 7aca8f6

Browse files
Properly define bsd-csh
1 parent 1054c3e commit 7aca8f6

3 files changed

Lines changed: 12 additions & 3 deletions

File tree

src/internal/unix.js

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,14 @@ const binBusyBox = "busybox";
4040
*/
4141
const binCsh = "csh";
4242

43+
/**
44+
* An alternative name for the C shell (csh) binary.
45+
*
46+
* @constant
47+
* @type {string}
48+
*/
49+
const binCshBsd = "bsd-csh";
50+
4351
/**
4452
* The name of the Debian Almquist shell (Dash) binary.
4553
*
@@ -86,8 +94,8 @@ export function getShellHelpers(shellName) {
8694
case binBusyBox: {
8795
return busybox;
8896
}
89-
case "bsd-csh":
90-
case binCsh: {
97+
case binCsh:
98+
case binCshBsd: {
9199
return csh;
92100
}
93101
case binDash: {

test/_constants.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ export const osTypes = [ostypeCygwin, ostypeMsys];
7676
export const binBash = "bash";
7777
export const binBusyBox = "busybox";
7878
export const binCsh = "csh";
79+
export const binCshBsd = "bsd-csh";
7980
export const binDash = "dash";
8081
export const binZsh = "zsh";
8182

test/unit/unix/index.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const shells = [
2525
{ module: bash, shellName: constants.binBash },
2626
{ module: busybox, shellName: constants.binBusyBox },
2727
{ module: csh, shellName: constants.binCsh },
28-
{ module: csh, shellName: "bsd-csh" },
28+
{ module: csh, shellName: constants.binCshBsd },
2929
{ module: dash, shellName: constants.binDash },
3030
{ module: zsh, shellName: constants.binZsh },
3131
];

0 commit comments

Comments
 (0)