bash/SOURCES/bash-5.0-shellpid-subshell.patch

13 lines
265 B
Diff
Raw Normal View History

2019-11-05 21:27:17 +00:00
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;