nalika / rpms / bash

Forked from rpms/bash 2 years ago
Clone

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

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