On Wed, 16 Sep 1998 22:41:34 +0800, Jon Priddey wrote:

>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 think you have the quotes in the wrong spot.  On the command line
you need to type:

        ci "-mblah blah blah" foo.c

Doing

        ci -m"blah blah blah" foo.c

does not work since the " is in the middle of an argument word.  (Standard
shell parsing, which is what happens when you use the exec() method.



Michael Sinz -- Director of Research & Development, NextBus Inc.
mailto:[EMAIL PROTECTED] --------- http://www.nextbus.com
My place on the web ---> http://www.users.fast.net/~michael_sinz

Reply via email to