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]