Skip to content

Commit f522892

Browse files
committed
#283: TShellCommand.createParsingProcess(): Prevent escaping stdin content.
Reverts 65b0bcf, but does not use the old comment "shells won't interpret stdin as executable commands" which was misleading.
1 parent a586ab4 commit f522892

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/TShellCommand.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -429,6 +429,8 @@ export class TShellCommand {
429429
this.getPreactionsDependentVariables(), // Second set: Variables that are tied to preactions. Can be an empty set.
430430
],
431431
[
432+
// Do not escape variables in stdin, because shells won't interpret special characters in stdin. All characters are considered literal.
433+
"stdinContent",
432434
// Do not escape variables in output wrappers, because they are not going through a shell and escape characters would be visible in the end result.
433435
'output_wrapper_stdout',
434436
'output_wrapper_stderr',

0 commit comments

Comments
 (0)