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.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,16b5f96c922749ee X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!i76g2000hsf.googlegroups.com!not-for-mail From: "RasikaSrinivasan@gmail.com" Newsgroups: comp.lang.ada Subject: Re: Command Line on windows Date: Fri, 12 Sep 2008 07:36:25 -0700 (PDT) Organization: http://groups.google.com Message-ID: <723c80f5-7df4-4bca-b07b-58a5a5aeb60d@i76g2000hsf.googlegroups.com> References: <9516d238-9e52-4de4-9993-590472a1ffba@w7g2000hsa.googlegroups.com> <48ca5fd4$1_7@news.bluewin.ch> NNTP-Posting-Host: 209.104.243.242 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: posting.google.com 1221230185 23559 127.0.0.1 (12 Sep 2008 14:36:25 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Fri, 12 Sep 2008 14:36:25 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: i76g2000hsf.googlegroups.com; posting-host=209.104.243.242; posting-account=mZyFSQoAAABfOmklsh1d8TPbS2LncUKl User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.4) Gecko/20070515 Firefox/2.0.0.4,gzip(gfe),gzip(gfe) Xref: g2news1.google.com comp.lang.ada:1997 Date: 2008-09-12T07:36:25-07:00 List-Id: On Sep 12, 8:25 am, Gautier wrote: > Not solving your problem, but you'd prefer to use Ada.Command_Line which > is standard and with Ada strings instead of C strings. > _________________________________________________________ > Gautier's Ada programming --http://sf.net/users/gdemont/ > > NB: For a direct answer, e-mail address on the Web site! unfortunately ada.command_line says the behaviour is implementation defined. in fact the following is a test of my original attempt : with Text_Io; use Text_Io; with Ada.Command_Line; procedure Test_Cli is begin Put_Line(Ada.Command_Line.Argument(1)); end Test_Cli ; this when compiled with gnat - produced results similar to gnat.command_line. That is why I thought gnat.command_line might work better. function Get_Argument (Do_Expansion : Boolean := False) return String; -- Returns the next element on the command line which is not a switch. -- This function should not be called before Getopt has returned -- ASCII.NUL. the do_expansion led me to believe i could turn it off. any other ideas? of course specifying for example "*.adb" (within quotations) does disable it but i guess that is the unix behaviour expected. thanks, srini