[bugfix] bin/picrin -e option broken
This commit is contained in:
parent
9dbcb2a605
commit
6449731bf4
|
@ -5,6 +5,7 @@
|
||||||
(scheme process-context)
|
(scheme process-context)
|
||||||
(scheme load)
|
(scheme load)
|
||||||
(scheme eval)
|
(scheme eval)
|
||||||
|
(picrin base)
|
||||||
(picrin repl))
|
(picrin repl))
|
||||||
|
|
||||||
(define (print-help)
|
(define (print-help)
|
||||||
|
@ -40,7 +41,7 @@
|
||||||
(lambda (in)
|
(lambda (in)
|
||||||
(let loop ((expr (read in)))
|
(let loop ((expr (read in)))
|
||||||
(unless (eof-object? expr)
|
(unless (eof-object? expr)
|
||||||
(eval expr '(picrin user))
|
(eval expr (library-environment (find-library '(picrin user))))
|
||||||
(loop (read in)))))))
|
(loop (read in)))))))
|
||||||
|
|
||||||
(define (main)
|
(define (main)
|
||||||
|
|
Loading…
Reference in New Issue