Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitddcd2da

Browse files
committed
refactor: switch to shell.cmd()
This swaps out shell.exec() in favor of shell.cmd(). This should offermore reliable performance and consistent behavior.There's a known issue that this causes one test case to fail due to achange in behavior for globbing.
1 parentefe104a commitddcd2da

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

‎index.js‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,9 @@ const proxyifyCmd = (t, ...cmdStart) => {
66
t=t||function_t(...args){
77
// Wrap all the arguments in quotes
88
constnewArgs=cmdStart
9-
.concat(args)
10-
.map((x)=>JSON.stringify(x));
9+
.concat(args);
1110
// Run this command in the shell
12-
returnorigShell.exec.call(this.stdout,newArgs.join(' '));
11+
returnorigShell.cmd(...newArgs);
1312
};
1413
// Store the list of commands, in case we have a subcommand chain
1514
t[cmdArrayAttr]=cmdStart;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp