Why doesn’t it output “world”? jruby is causing foo.bat to exit before
the last echo runs.
It’s a windows batch file … “feature”. jruby is a batch file too,
and batch files calling other batch files (like you are, there),
TRANSFER control to the called batch file. They don’t call it like a
subroutine or a function and return to the caller.
Like Nick also said, you can do “call jruby foo.rb” which should solve
it for you.
From windows command prompt, “call /?” will give you a bunch of
information on different things you can do with “call”.
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.