Import existing variables into the REPL
* geesh/repl.scm (run-repl): Use existing environment variables for the initial environment.
This commit is contained in:
parent
737ed6a1b7
commit
9b879623de
|
@ -30,7 +30,7 @@
|
|||
;;; Code:
|
||||
|
||||
(define (run-repl)
|
||||
(let loop ((env (make-environment '()))
|
||||
(let loop ((env (make-environment (environ->alist (environ))))
|
||||
(exp (read-sh (current-input-port))))
|
||||
(unless (eof-object? exp)
|
||||
(eval-sh env exp)
|
||||
|
|
Loading…
Reference in New Issue