nalika / rpms / bash

Forked from rpms/bash 2 years ago
Clone

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

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