cs: print results of -e
command-line expressions
Also, wrap an individual prompt around each evaluation.
This commit is contained in:
parent
2fe2b7a8a7
commit
21712fecc9
|
@ -327,7 +327,19 @@
|
||||||
(set! loads
|
(set! loads
|
||||||
(cons
|
(cons
|
||||||
(lambda ()
|
(lambda ()
|
||||||
(eval (read (open-input-string expr))))
|
(call-with-values (lambda ()
|
||||||
|
(call-with-continuation-prompt
|
||||||
|
(lambda ()
|
||||||
|
(eval (read (open-input-string expr))))
|
||||||
|
(default-continuation-prompt-tag)
|
||||||
|
(lambda (proc)
|
||||||
|
;; continue escape to set error status:
|
||||||
|
(abort-current-continuation (default-continuation-prompt-tag) proc))))
|
||||||
|
(lambda vals
|
||||||
|
(for-each (lambda (v)
|
||||||
|
(|#%app| (|#%app| current-print) v)
|
||||||
|
(flush-output))
|
||||||
|
vals))))
|
||||||
loads))
|
loads))
|
||||||
(flags-loop rest-args (see saw 'non-config)))]
|
(flags-loop rest-args (see saw 'non-config)))]
|
||||||
[("-k")
|
[("-k")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user