I've seen this before on redhat 7.0 and it is logged on the redhat
bug page as a known bug, currently they had fixed it in 7.1 but have
not issued a patch to 7.0

RedHat bug Id:  23758
location: http://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=23758

The classic VM in 1.3 does return the expected result.

regards
calvin

Dan Kegel wrote:
> 
> Hi,
> looks like System.exit(1) doesn't cause the java executable to
> terminate with an exit status of 1 with the Blackdown 1.3.0.
> It works fine with the IBM 1.3.0, though.  Here's my test program:
> 
> import java.io.*;
> public class foo {
>         public static void main(String args[]) {
>                 System.out.println("Failing...");
>                 System.exit(1);
>         }
> }
> 
> And here's the shell script I run it with:
> 
> #!/bin/sh
> set -x
> set -e
> java foo
> echo Hmm: exit status was $?
> 
> With Blackdown 1.3.0, I see
> 
> $ sh foo.sh
> + set -e
> + java foo
> Failing...
> + echo Hmm: exit status was 0
> Hmm: exit status was 0
> $
> 
> which is incorrect, but with IBM, I see the expected
> 
> $ sh foo.sh
> + set -e
> + java foo
> Failing...
> $
> 
> I suppose this is an old known problem... any workaround?
> - Dan
> 
> ----------------------------------------------------------------------
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]


----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to