scala/scala — pull request #119 by cvogt (2012-01-20 22:39:18+00:00)
Title: Fixed windows bat file exit code and command chaining (finally)

The problem was, that executing the following command in the windows
shell, always executed scala.bat regardless of the outcome of scalac.bat:

scalac.bat somefile.scala && scala.bat Test

Apparently exit codes are broken for windows bat files.

Implementing the workaround suggested at
http://stackoverflow.com/questions/4632891/exiting-batch-with-exit-b-x-where-x-1-acts-as-if-command-completed-successfu
fixed the problem. Tested manually in Windows 7 64.