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
Scala eats exit code when piping stdin #4771
Comments
Imported From: https://issues.scala-lang.org/browse/SI-4771?orig=1 |
Jonathan Clark (jhclark) said: Scala 2.9.0-final. Ubuntu 10.04 LTS. |
Jonathan Clark (jhclark) said: |
Jonathan Clark (jhclark) said: |
Matthew Farwell (mfarwell) said: The fix is simple, in $SCALA_HOME/bin/scala, line 25, change function onExit() {
if [[ "$saved_stty" != "" ]]; then
restoreSttySettings
exit $scala_exit_status
fi
} move the exit outside the test for $saved_stty.
This has already been done in trunk, and this works with the latest build. |
Matthew Farwell (mfarwell) said (edited on Mar 21, 2012 7:46:03 PM UTC): |
@paulp said: |
Matthew Farwell (mfarwell) said: Sorry, should have done the pull request before. |
@paulp said: |
A.scala:
From a Bash shell:
In the second case, the exit code 1 disappears. Tried this with 2.8 and I don't have this problem.
The text was updated successfully, but these errors were encountered: