cs: wrap command-line eval in #%top-interaction

This commit is contained in:
Matthew Flatt 2019-01-25 14:39:40 -07:00
parent f8448c4795
commit a4821716d9

View File

@ -340,7 +340,7 @@
(call-with-values (lambda ()
(call-with-continuation-prompt
(lambda ()
(eval (read (open-input-string expr))))
(eval `(|#%top-interaction| . ,(read (open-input-string expr)))))
(default-continuation-prompt-tag)
(lambda (proc)
;; continue escape to set error status: