Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

System/exit throws exception #606

Closed
eigenhombre opened this issue Oct 5, 2020 · 2 comments
Closed

System/exit throws exception #606

eigenhombre opened this issue Oct 5, 2020 · 2 comments

Comments

@eigenhombre
Copy link

v0.2.2
Mac Catalina
(System/exit 0) doesn't, but throws
repro

$ bb
Babashka v0.2.2 REPL.
Use :repl/quit or :repl/exit to quit the REPL.
Clojure rocks, Bash reaches.
user=> (System/exit 0)
clojure.lang.ExceptionInfo [at <repl>:1:1]
user=>

expected behavior
I want this to exit, and if I provide -1 as the exit code, for the Babashka process to return -1 to the calling shell, so I can use that code per standard Unix process semantics.

@borkdude
Copy link
Collaborator

borkdude commented Oct 5, 2020

Thanks. Note that this error only happens in a bb REPL. In a script (System/exit 1) works ok.

borkdude added a commit that referenced this issue Oct 5, 2020
@borkdude
Copy link
Collaborator

borkdude commented Oct 5, 2020

Fixed on master.

@borkdude borkdude closed this as completed Oct 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants