#BUGFIX by cg
authorClaus Gittinger <cg@exept.de>
Tue, 08 Nov 2016 18:47:14 +0100
changeset 20912 fc5c40cbdb26
parent 20911 1c11be64f4a1
child 20913 58dc377d1211
#BUGFIX by cg class: ReadEvalPrintLoop changed: #basicReadEvalPrintLoopWithInput:output:error:compiler:prompt:print: #cmd_read:
ReadEvalPrintLoop.st
--- a/ReadEvalPrintLoop.st	Tue Nov 08 18:44:07 2016 +0100
+++ b/ReadEvalPrintLoop.st	Tue Nov 08 18:47:14 2016 +0100
@@ -356,7 +356,7 @@
 !
 
 cmd_read:lineStream
-    |filename newInput savedPrompt savedPrint savedInput savedCurrentDirectory|
+    |filename newInput savedPrompt savedPrint savedInput savedCurrentDirectory savedDoChunkFormat|
 
     lineStream skipSeparators.
     filename := lineStream upToEnd withoutSeparators.
@@ -384,6 +384,7 @@
 
     [
         savedCurrentDirectory := currentDirectory.
+        savedDoChunkFormat := doChunkFormat.
         savedInput := inputStream.
         savedPrint := printFlag.
         savedPrompt := prompt.
@@ -398,12 +399,17 @@
             compiler:(compiler ? Compiler ? Parser)
             prompt:false
             print:false.
+        'after read1' errorPrintCR.
     ] ensure:[
+        doChunkFormat := savedDoChunkFormat.
         currentDirectory := savedCurrentDirectory.
         inputStream := savedInput.
         printFlag := savedPrint.
-        prompt := savedPrompt
+        prompt := savedPrompt.
+        
+        'ensure done' errorPrintCR.
     ].
+    'after read2' errorPrintCR.
 !
 
 cmd_set:lineStream
@@ -659,7 +665,7 @@
         ].
 
         input atEnd ifTrue:[
-            error cr.
+            doPrint ifTrue:[ error cr ].
             ^ self.
         ].