diff options
Diffstat (limited to 'modules/ext')
| -rw-r--r-- | modules/ext/critical-ext-bundle.js | 7 | ||||
| -rw-r--r-- | modules/ext/shell.js | 7 |
2 files changed, 10 insertions, 4 deletions
diff --git a/modules/ext/critical-ext-bundle.js b/modules/ext/critical-ext-bundle.js index d241f33..00d7345 100644 --- a/modules/ext/critical-ext-bundle.js +++ b/modules/ext/critical-ext-bundle.js @@ -319,9 +319,12 @@ class ShellModule { try { if (i < pipeParts.length - 1) { - pipeInput = await this.capturePipeOutput(cmd, args); + // v4.6.131: hand the stage's own text to the command (this override is the + // one that actually runs — it replaces terminal.executePipeChain), so + // `js "a b".length | wc -c` keeps its quotes like a bare command does. + pipeInput = await this.capturePipeOutput(cmd, args, cmdText); } else { - await this.dispatchCommand(cmd, args); + await this.dispatchCommand(cmd, args, cmdText); } } finally { // Clean up temp file diff --git a/modules/ext/shell.js b/modules/ext/shell.js index 5784ef3..8640630 100644 --- a/modules/ext/shell.js +++ b/modules/ext/shell.js @@ -183,9 +183,12 @@ class ShellModule { try { if (i < pipeParts.length - 1) { - pipeInput = await this.capturePipeOutput(cmd, args); + // v4.6.131: hand the stage's own text to the command (this override is the + // one that actually runs — it replaces terminal.executePipeChain), so + // `js "a b".length | wc -c` keeps its quotes like a bare command does. + pipeInput = await this.capturePipeOutput(cmd, args, cmdText); } else { - await this.dispatchCommand(cmd, args); + await this.dispatchCommand(cmd, args, cmdText); } } finally { // Clean up temp file |