diff options
Diffstat (limited to 'modules/ext/shell.js')
| -rw-r--r-- | modules/ext/shell.js | 7 |
1 files changed, 5 insertions, 2 deletions
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 |