Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
-
None
-
None
-
lunix drlvm
-
Patch Available
Description
Given a simple test case below:
String[] cmmds = new String[]
{"echo"}; [0]
ProcessBuilder pb = new ProcessBuilder(cmmds);
Process p = pb.start();
p.waitFor();
System.out.println(p.exitValue());
harmony + drlvm returns different from RI.
The basic reason is:
1. echo file does not contain the #! interpreter at the beginning
2. drlvm return ENOEXEC because "An executable is not in a recognized format".
Maybe we should give it another try: using '/bin/sh' to run the file.
[0] echo is a simple file which contains a command. It will be attached.