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=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,e219d94b946dfc26,start X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Date: Wed, 21 Feb 2007 21:43:41 +0100 From: Gautier User-Agent: Thunderbird 1.5.0.9 (Windows/20061207) MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Ada.Command_Line and wildcards Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 85.1.158.7 X-Original-NNTP-Posting-Host: 85.1.158.7 Message-ID: <45dcaed8_6@news.bluewin.ch> X-Trace: news.bluewin.ch 1172090584 85.1.158.7 (21 Feb 2007 21:43:04 +0100) Organization: Bluewin AG Complaints-To: abuse@bluewin.ch X-Original-NNTP-Posting-Host: 127.0.0.1 Path: g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!newsfeed-0.progon.net!progon.net!news-zh.switch.ch!switch.ch!news.ip-plus.net!newsfeed.ip-plus.net!news.bluewin.ch!not-for-mail Xref: g2news2.google.com comp.lang.ada:9383 Date: 2007-02-21T21:43:41+01:00 List-Id: Hello! I was surprised to see Ada.Command_Line in GNAT (3.15p and 2006 GPL) serving the command-line argument "*.adb" indeed as N arguments, the list of files with an "adb" extension! ObjectAda gives the argument as-is. Who is right then ? It's a annoying if the wildcard expansion is done a priori, because I would like to have it done by Ada.Directories, for a generic command-line tool... Here, the test program: with Ada.Command_Line; use Ada.Command_Line; with Ada.Text_IO; use Ada.Text_IO; procedure Args is begin for I in 1..Argument_Count loop Put_Line(Integer'Image(I) & " [" & Argument(I) & ']'); end loop; Put("Press Enter"); Skip_Line; end; ______________________________________________________________ Gautier -- http://www.mysunrise.ch/users/gdm/index.htm Ada programming -- http://www.mysunrise.ch/users/gdm/gsoft.htm NB: For a direct answer, e-mail address on the Web site!