rcolebaugh / rpms / bash

Forked from rpms/bash a year ago
Clone
Blob Blame History Raw
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;