This is the mail archive of the
java-discuss@sourceware.cygnus.com
mailing list for the Java project.
Re: 2 things
Tom Tromey wrote:
>
> Simon> Also, here's a (very poor!) patch for Runtime.exec() which
> Simon> takes into account a single level of quoting in a passed-in
> Simon> execution string. So you can call exec("find /tmp -name xxx
> Simon> -printf '%p %AH'") for example.
>
> Perhaps we should just pass the string verbatim to sh and let it sort
> it out. What does the JDK do?
I'm not sure, but I tink the best approach would be to pass the string
verbatim (that was what I was trying to say :-), however the internal
call is to ConcreteProcess (which seems to be PosixProcess in disguise)
using the char** approach.
I have to install a system tomorrow so I was less than happy to tinker
:-)
ATB,
Simon.
- References:
- 2 things
- From: Simon Gornall <simon@unique-id.com>
- Re: 2 things
- From: Tom Tromey <tromey@cygnus.com>