Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
use correct value
  • Loading branch information
anonrig committed May 6, 2024
commit 4989987dc649593e2f5764238f08c32bd37a23ad
2 changes: 1 addition & 1 deletion src/node_task_runner.cc
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ std::string EscapeShell(const std::string_view input) {
// Passing "--help "sdfsd"" to a batch script
// will be considered as a single argument made
// of --help "sdfsd". However, there are corner cases.
std::string escaped = "\"" + escaped + "\"";
std::string escaped = "\"" + std::string(input) + "\"";
#else
// Replace single quotes("'") with "\\'"
std::string escaped =
Expand Down
10 changes: 6 additions & 4 deletions test/fixtures/run-script/node_modules/.bin/positional-args.bat

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.