bash/SOURCES/bash-5.0-shellpid-subshell.patch
2021-09-09 14:59:17 +00:00

13 lines
265 B
Diff

diff --git a/parse.y b/parse.y
--- a/parse.y
+++ b/parse.y
@@ -4193,7 +4193,7 @@ eof_error:
FREE (nestret);
}
- if MBTEST(ch == '$')
+ if MBTEST(ch == '$' && (tflags & LEX_WASDOL) == 0)
tflags |= LEX_WASDOL;
else
tflags &= ~LEX_WASDOL;