Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!fu-berlin.de!uni-berlin.de!news.dfncis.de!not-for-mail From: =?ISO-8859-1?Q?Sven_K=F6hler?= Newsgroups: comp.lang.java.programmer Subject: Re: exec problem is JDK 1.7.0_21 Date: Sun, 28 Apr 2013 09:23:54 +0300 Lines: 38 Message-ID: References: <517c8b03$0$32105$14726298@news.sunsite.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: news.dfncis.de LhRyp5T15dmKmRLsjMjU1gWxLO1tnqu21bZlxauaQBbo2ywEhBaB9bNS/y Cancel-Lock: sha1:syotfhzQYovG7Wtqh/6bYYHqDyA= User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130328 Thunderbird/17.0.5 In-Reply-To: <517c8b03$0$32105$14726298@news.sunsite.dk> Xref: csiph.com comp.lang.java.programmer:23687 Am 28.04.2013 05:35, schrieb Arne Vajhøj: > On 4/24/2013 3:39 AM, Sven Köhler wrote: >> On 04/23/2013 11:32 PM, Arved Sandstrom wrote: >>> That's the point a number of us have been making, Sven. In the case of >>> ProcessBuilder and Process you jump to no conclusions, and test your >>> specific case. >> >> The specific case is broken. Now what? > > ProcessBuilder provides some functionality. Hmm. I find that argument dangerous, as it given the a free pass to implement whatever they want - however badly they want ... > If you need more or different functionality, then use JNI > to write your own stuff. ... and then claim > Running external processes is not really platform independent, > so you do not loose that. Are you saying, that they should have never attempted to convert an array of arguments into a command line string on Windows? Because that would exactly be one of my points. Recall the fact, that documentation already mentions the possibility of proper platform dependent behaviour. Or are you somehow trying to defend the faulty escaping they implemented to make it seem like a cross-platform API? Because at the moment, we're stuck with something broken which is neither platform dependent nor independent. We neither have a platform dependent API (e.g. taking arrays of arguments on UNIX and a single argument on Windows) and neither a platform independent API (which properly converts an argument array to an argument string). Regards, Sven