Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!news.swapon.de!eternal-september.org!feeder.eternal-september.org!mx05.eternal-september.org!.POSTED!not-for-mail From: Knute Johnson Newsgroups: comp.lang.java.programmer Subject: Re: exec problem is JDK 1.7.0_21 Date: Sun, 21 Apr 2013 09:20:30 -0700 Organization: A noiseless patient Spider Lines: 77 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Sun, 21 Apr 2013 16:17:30 +0000 (UTC) Injection-Info: mx05.eternal-september.org; posting-host="aba33539224e5c782fe0c4053f7756fd"; logging-data="3441"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18SlwuzBCLklIhUgYhFwx/k" User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:17.0) Gecko/20130328 Thunderbird/17.0.5 In-Reply-To: Cancel-Lock: sha1:Hw0FdgnfHo4DPiLMl1j2v19z4jY= Xref: csiph.com comp.lang.java.programmer:23551 On 4/21/2013 6:30 AM, Chris Uppal wrote: > Nothing like experiment :-) But two questions: what version of windows were > you using ? And what kind of external application were you testing it with ? > -- chris I haven't followed this thread closely enough to really understand the controversy. But I like experiments. And I never get to write anything in C any more. Windows XP (the results on Xubuntu 12.10 are identical) One quoted argument "hello world" C:\Documents and Settings\Knute Johnson>java test argc=2 argv[0]=C:\Documents and Settings\Knute Johnson\test.exe argv[1]=hello world exitValue=123 Two arguments C:\Documents and Settings\Knute Johnson>java test argc=3 argv[0]=C:\Documents and Settings\Knute Johnson\test.exe argv[1]=hello argv[2]=world exitValue=123 --- #include int main(int argc, char** argv) { int i = 0; printf("argc=%d\n",argc); for (i=0; i