Use scheme-exit-now instead of exit.
This commit is contained in:
parent
9ea85ca468
commit
d7f602982e
|
@ -316,6 +316,7 @@
|
|||
; with-current-output-port exit
|
||||
scsh-level-0-internals ; set-command-line-args! init-scsh-vars
|
||||
threads
|
||||
root-scheduler ; scheme-exit-now
|
||||
scheme)
|
||||
(files top meta-arg))
|
||||
|
||||
|
|
13
scsh/top.scm
13
scsh/top.scm
|
@ -275,18 +275,17 @@
|
|||
(in-package (user-environment) '())))))
|
||||
|
||||
((eq? term-switch 'c)
|
||||
(eval (read-exactly-one-sexp-from-string term-val)
|
||||
(interaction-environment))
|
||||
(exit 0))
|
||||
(scheme-exit-now
|
||||
(eval (read-exactly-one-sexp-from-string term-val)
|
||||
(interaction-environment)))) )
|
||||
|
||||
(top-entry ; There was a -e <entry>.
|
||||
((eval top-entry (interaction-environment))
|
||||
(command-line))
|
||||
(exit 0))
|
||||
(scheme-exit-now ((eval top-entry (interaction-environment))
|
||||
(command-line))))
|
||||
|
||||
;; Otherwise, the script executed as it loaded,
|
||||
;; so we're done.
|
||||
(else (exit 0)))))))))))))
|
||||
(else (scheme-exit-now 0))))))))))))
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue