Skip to content

Commit c4467f8

Browse files
committed
Record the quarto.cmd launcher fix as a PR 33 prerequisite
Plan 33 Task 9 Step 4 replaces quarto.cmd with a full listing written before #15276 and this fix. Pasted as is, it would bring back the argument corruption, the "%1" shortcuts and the unquoted win_configuration.bat call. Per the migration AGENTS.md, the finding goes in the open-decisions table for PR 33's step 0, not into the plan.
1 parent 248925d commit c4467f8

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎dev-docs/runtime-migration/README.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@ The rows below are the ones that still need a named person or an external answer
155155
| PR 08 Task 1 and Task 2 step 2 (from #15341, the `execProcess` UTF-8 fix on `main`) | The plan's premise that `src/deno_ral/process.ts` is 10 lines (context section, `08-ral-process.md:25`) is stale: `execPath(): string` already exists there with the planned signature. Task 2 step 2 imports `pooledMap` (`:933`) and its `processOutput` snippet (`:1047-1066`) restores the per-chunk body that decodes each chunk twice, which would revert the fix; applied as written over the current body, which already prints through its own helper, it would also print inherited output twice. Re-derive the snippet from the current `processOutput` (decode once with `{ stream: true }`, flush at the end, skip empty text) and make `writeStdoutSync`/`writeStderrSync` the only change; drop `pooledMap` from the import as `filteredAsyncIterator` no longer uses it. Add `unit/exec-process-utf8-chunks.test.ts` to Task 2's verification | PR 08 executor | PR 08 step 0 |
156156
| PR 28 Task 4 step 3 (from #15341) | the merged-mode `addStream` snippet (`28-ral-process-on-node-apis.md:894-900`) wraps only filtered streams (`filter ? filteredAsyncIterator(iterator, filter) : iterator`), which drops the per-stream decoding that keeps a character split across chunks whole when both streams are merged. Keep `filteredAsyncIterator(iterator, filter)` on both streams, and add `unit/exec-process-utf8-chunks.test.ts` to the PR's gate | PR 28 executor | PR 28 step 0 |
157157
| PRs 23 and 31 (from #15341) | `tests/unit/exec-process-utf8-chunks.test.ts` starts its child as `execPath() eval '<script>'`, a Deno-only invocation (the `eval` subcommand; the script body itself uses only `node:fs`). Add it to PR 23's runtime re-invocation inventory (`23-codemod-tests.md:42-43`) so PR 31's `runtimeScriptCommand` converts it | PR 23 executor | PR 23 step 0 |
158+
| PR 33 Task 9 Step 4 (from #15365, the `quarto.cmd` argument fix on `main`) | The full `quarto.cmd` listing (`33-build-tooling-node.md:2111-2207`) predates three launcher fixes on `main` and would revert them. Its launch line and `QUARTO_LAUNCHER_DEBUG` line put `%*` on a line that uses `!VAR!` under `ENABLEDELAYEDEXPANSION`, so arguments containing `!` or `^` are altered; `main` builds the command with `!VAR!`, carries it through `FOR /F`, and runs it on an unparenthesized `DO SETLOCAL DISABLEDELAYEDEXPANSION & %%C %*`. Its `IF "%1"==` shortcuts never match when the caller quotes the argument, as Deno does for every batch-file argument; `main` compares `"%~1"`. Its `call !QUARTO_ROOT!\win_configuration.bat` drops the quotes #15276 added. Re-derive the Windows launcher from current `main` instead of pasting the listing, and keep `tests/unit/launcher-arguments.test.ts`, `dev-launcher-path-with-space.test.ts` and `bundled-launcher-path-with-space.test.ts` green. | PR 33 executor | PR 33 step 0 |
158159

159160
## Shared rules and tables
160161

0 commit comments

Comments
 (0)