From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,d87fe6752812f07a X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news1.google.com!news.glorb.com!news2.glorb.com!wn11feed!worldnet.att.net!bgtnsc05-news.ops.worldnet.att.net.POSTED!53ab2750!not-for-mail Newsgroups: comp.lang.ada From: anon@anon.org (anon) Subject: Re: Example of Spawn call Reply-To: anon@anon.org (anon) References: <50d832b4-140d-4029-8d7c-9397115160ba@u8g2000yqn.googlegroups.com> X-Newsreader: IBM NewsReader/2 2.0 Message-ID: Date: Sat, 02 May 2009 20:59:08 GMT NNTP-Posting-Host: 12.64.48.144 X-Complaints-To: abuse@worldnet.att.net X-Trace: bgtnsc05-news.ops.worldnet.att.net 1241297948 12.64.48.144 (Sat, 02 May 2009 20:59:08 GMT) NNTP-Posting-Date: Sat, 02 May 2009 20:59:08 GMT Organization: AT&T Worldnet Xref: g2news2.google.com comp.lang.ada:5661 Date: 2009-05-02T20:59:08+00:00 List-Id: The first space in the argument list could be considered as a GNAT BUG because the routine "Argument_String_To_List" should truncate all leading and tailing spaces before processing the arguments list. Args :=3D Argument_String_To_List ( " First -second 3" ) ; Because I did not try this but what would happen if you tried Args :=3D Argument_String_To_List ( " First -second 3 " ) ; As for the changing the name from "temp.exe" to "temp", must be done in Linux as well, but "Daniel" was asking for help with "Windows XP" which uses "temp.exe" in this example. In , sjw writes: >On May 2, 8:38=A0pm, sjw wrote: >> On May 2, 4:50=A0pm, Hang wrote: >> >> > I'm not seeing any problem: >> >> > C:\GNAT\Projects\test>test >> > =A01 =A0=3D> First >> > =A02 =A0=3D> -second >> > =A03 =A0=3D> 3 >> > Temp was Spawned Correctly >> >> Aside from having to change Program_Name to just "temp", this worked >> on Mac OS X (GCC 4.3.3). The behavior was subtly different: >> >> $ ./test >> =A01 =A0=3D> >> =A02 =A0=3D> First >> =A03 =A0=3D> -second >> =A04 =A0=3D> 3 >> Temp was Spawned Correctly >> $ > >Ah, it's the leading space in the arguments: > > Args :=3D Argument_String_To_List ( " First -second 3" ) ; >