Any help much appreciated:

I've got some code which integrates with RCS.
It creates a Process with:
Runtime.getRuntime().exec("ci -m\"blah blah blah\" filename",env);

where "blah blah blah" is the description of the check-in.
Enclosed in double quotes (") to group the words as a single parameter. 

My 116v2 seems to have problems with this, though it works fine on a Sun
JDK. 

ci gets the args as:
1/ -m"blah
2/ blah
3/ blah"
4/ filename.

I have tried spawning a shell in case the double-quotes are not handled
by the Linux implementation:

Runtime.getRuntime().exec("sh -c \"ci -m\"blah blah blah\"  \"",env);

In this case, ci complains about EOF while looking for a closing ".

I've also tried replacing the " with ', which gives the same results.

Hopefully someone has hit this before, or knows whether the JDK is
supposed to handle these things or pass them raw to the O/S - obviously
one word check-in descriptions isratherlimiting.

Regards, Jon.

Reply via email to