Return 0 exit status for -c and -e.
This commit is contained in:
parent
cad703672f
commit
665928fed1
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue