Skip to content

Commit 4e18873

Browse files
committed
use correct value
1 parent daf9393 commit 4e18873

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

src/node_task_runner.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ std::string EscapeShell(const std::string_view input) {
165165
// Passing "--help "sdfsd"" to a batch script
166166
// will be considered as a single argument made
167167
// of --help "sdfsd". However, there are corner cases.
168-
std::string escaped = "\"" + escaped + "\"";
168+
std::string escaped = "\"" + std::string(input) + "\"";
169169
#else
170170
// Replace single quotes("'") with "\\'"
171171
std::string escaped =

test/fixtures/run-script/node_modules/.bin/positional-args.bat

Lines changed: 6 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)