Details
-
Type:
Bug
-
Status:
Reopened
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: JRuby 1.6.6
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
-
Environment:OSX 10.7.2
-
Number of attachments :
Description
jruby-1.6.5 :001 > IO.popen4("sh -c \"echo\"; echo $?") {}; $? => #<Process::Status: pid=36500,exited(0)> jruby-1.6.6 :002 > IO.popen4("sh -c \"echo\"; echo $?") {}; $? => #<Process::Status: pid=36395,exited(143)>
Note the exit code on 1.6.6 is 143, not 0.
Activity
Xavier Shay
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Status | Open [ 1 ] | Resolved [ 5 ] |
| Resolution | Cannot Reproduce [ 5 ] |
Xavier Shay
made changes -
| Resolution | Cannot Reproduce [ 5 ] | |
| Status | Resolved [ 5 ] | Reopened [ 4 ] |
Trying the same thing on my machine:
I don't see your issue:
system ~/work/jruby jruby-1_6 963% jirb irb(main):001:0> IO.popen4("sh -c \"echo\"; echo $?") {}; p $? IO.popen4("sh -c \"echo\"; echo $?") {}; p $? #<Process::Status: pid=34886,exited(0)> => nilI am unclear how pre-Lion could do this. Which version of Java are you using?