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

Errors often exit with status 0 #2616

Open
cbiffle opened this issue Sep 14, 2015 · 1 comment
Open

Errors often exit with status 0 #2616

cbiffle opened this issue Sep 14, 2015 · 1 comment

Comments

@cbiffle
Copy link
Contributor

cbiffle commented Sep 14, 2015

(Found at 6fc713d, consistent at least back through 0.9.18)

Bogus command line arguments given to idris --client print a usage message (good!) and then exit with status 0 (less good). This means that programs calling out to idris don't realize their command lines are formatted incorrectly.

I specifically noticed this with the idris-vim plugin, resulting in the issue idris-hackers/idris-vim#39.

Test case (note that idris requires quotes around the :l file.idr command):

$ idris --client :l file.idr
Usage is :l <string>
$ echo $?
0
@cbiffle
Copy link
Contributor Author

cbiffle commented Sep 15, 2015

Hm, it seems that all sorts of bad things exit with status 0.

$ idris --client ":l nonexist.idr"
Can't find import nonexist.idr
$ echo $?
0

@cbiffle cbiffle changed the title Bad command lines exit with status 0 Errors often exit with status 0 Sep 15, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants