2 things
Simon Gornall
simon@unique-id.com
Mon Aug 2 10:27:00 GMT 1999
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.
More information about the Java
mailing list