Win32Process.java (ConcreteProcess): Surround a command line element with quotes if it contains an embedded space or tab.
2003-07-26 Ranjit Mathew <rmathew@hotmail.com> * java/lang/Win32Process.java (ConcreteProcess): Surround a command line element with quotes if it contains an embedded space or tab. * java/lang/natWin32Process.cc (startProcess): Do not surround command line elements with quotes here. From-SVN: r69844
This commit is contained in:
parent
6eb085352b
commit
cc33095ccf
3 changed files with 15 additions and 3 deletions
|
@ -67,6 +67,14 @@ final class ConcreteProcess extends Process
|
|||
File dir)
|
||||
throws IOException
|
||||
{
|
||||
for (int i = 0; i < progarray.length; i++)
|
||||
{
|
||||
String s = progarray[i];
|
||||
|
||||
if ( (s.indexOf (' ') >= 0) || (s.indexOf ('\t') >= 0))
|
||||
progarray[i] = "\"" + s + "\"";
|
||||
}
|
||||
|
||||
startProcess (progarray, envp, dir);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue