rcolebaugh / rpms / bash

Forked from rpms/bash a year ago
Clone

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

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