Skip to content

node:child_process: fix propagation of windowsHide and windowsVerbatimArguments option - #10193

Merged
Jarred-Sumner merged 1 commit into
mainfrom
nektro-patch-51328
Apr 12, 2024
Merged

Jarred-Sumner merged 1 commit into
mainfrom
nektro-patch-51328

Conversation

@nektro

@nektro nektro commented Apr 12, 2024

Copy link
Copy Markdown
Contributor

Fixes #10025

@nektro

nektro commented Apr 12, 2024

Copy link
Copy Markdown
Contributor Author

test result on bun 1.1.3

error: expect(received).toEqual(expected)

  [
    "tasklist",
    "/FI",
+   "\"IMAGENAME",
+   "eq",
+   "chrome.exe\""
-   "IMAGENAME eq chrome.exe"
  ]

- Expected  - 1
+ Received  + 3

      at C:\bun\test\js\node\child_process\child-process-exec.test.ts:105:3
✗ exec with verbatim arguments [54.97ms]

@nektro

nektro commented Apr 12, 2024

Copy link
Copy Markdown
Contributor Author

test code from the issue on this branch

PS C:\bun> bun-debug.exe .\test.js
[ "C:\\Windows\\system32\\cmd.exe", "/d", "/s", "/c", "\"tasklist /FI \"IMAGENAME eq chrome.exe\"\""
]
INFO: No tasks are running which match the specified criteria.

@github-actions

Copy link
Copy Markdown
Contributor

@github-actions

Copy link
Copy Markdown
Contributor

@github-actions

Copy link
Copy Markdown
Contributor

❌ @nektro 1 files with test failures on bun-darwin-aarch64:

View test output

#dd6fcf763f58b27ab3a908205eeb644f685adec8

@github-actions

Copy link
Copy Markdown
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

exec and execSync do not properly parse the given string command (tested only on Windows)

2 participants