         continue
     }
 
-    lineNoise.addHistory(thisLine)
+    if interactive {
+        lineNoise.addHistory(thisLine)
+    }
 
     if thisLine.trimmingCharacters(in: .whitespaces).hasPrefix("#") {
         continue

                    dump(ast)
                    log()
                }
            } catch {
                print("Fatal error: \(error)")
                exit(1)

            log(makeReport(result: ist))
            log()
        }
        if !interactive {
            exit(1)
        }
        multilines.removeAll()
    }
}
