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

Windows: scala batch files swallow exitcodes under certain fancy circumstances #5295

Closed
scabug opened this issue Dec 9, 2011 · 3 comments
Closed
Assignees

Comments

@scabug
Copy link

scabug commented Dec 9, 2011

Usually scripts like scala.bat and scalac.bat correctly propagate exit codes from underlying Java invocations. However, if you run these scripts as follows: "cmd /c scala ...", then errorlevel gets swallowed.

@scabug
Copy link
Author

scabug commented Dec 9, 2011

Imported From: https://issues.scala-lang.org/browse/SI-5295?orig=1
Reporter: @xeno-by
Affected Versions: 2.10.0

@scabug
Copy link
Author

scabug commented Dec 9, 2011

@xeno-by said:
Fixing the problem is as easy as adding "exit /b %errorlevel%" at the end of a batch file. Here's my pull request to scala/scala: scala/scala#53

@scabug
Copy link
Author

scabug commented Feb 9, 2012

@xeno-by said:
Fixed by scala/scala#54

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