Return 0 exit status for -c and -e.

This commit is contained in:
mainzelm 2002-01-24 08:14:42 +00:00
parent cad703672f
commit 665928fed1
1 changed files with 2 additions and 2 deletions

View File

@ -356,13 +356,13 @@
(let ((result (eval (read-exactly-one-sexp-from-string term-val)
(interaction-environment))))
(call-exit-hooks)
(scheme-exit-now result)))
(scheme-exit-now 0)))
(top-entry ; There was a -e <entry>.
(let ((result ((eval top-entry (interaction-environment))
(command-line))))
(call-exit-hooks)
(scheme-exit-now result)))
(scheme-exit-now 0)))
;; Otherwise, the script executed as it loaded,
;; so we're done.