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.1 required=5.0 tests=BAYES_00, PP_MIME_FAKE_ASCII_TEXT autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,e219d94b946dfc26 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!news4.google.com!newsfeed2.dallas1.level3.net!newsfeed1.dallas1.level3.net!news.level3.com!news.binc.net!kilgallen From: Kilgallen@SpamCop.net (Larry Kilgallen) Newsgroups: comp.lang.ada Subject: Re: Ada.Command_Line and wildcards Date: 22 Feb 2007 09:12:05 -0600 Organization: LJK Software Message-ID: References: <45dcaed8_6@news.bluewin.ch> <1172132169.423514.271890@s48g2000cws.googlegroups.com> NNTP-Posting-Host: eisner.encompasserve.org X-Trace: grandcanyon.binc.net 1172157058 12941 192.135.80.34 (22 Feb 2007 15:10:58 GMT) X-Complaints-To: abuse@binc.net NNTP-Posting-Date: Thu, 22 Feb 2007 15:10:58 +0000 (UTC) Xref: g2news2.google.com comp.lang.ada:9413 Date: 2007-02-22T09:12:05-06:00 List-Id: In article , Jean-Pierre Rosen writes: > Maciej Sobczak a �crit : >> Jean-Pierre Rosen wrote: >> >>> Too bad that Unix behaviour was wrong in the first place... >> >> I don't understand. Shell uses some special characters to make it easier >> for the user to type commands [1]. Wildcards are just an example. >> Consider this: >> >> $ cat *.ads *.adb | wc -l > loc.txt >> >> If you claim that * above should be passed "as is" to the program (cat), >> so that the program can figure out on itself what to do with it, then >> you might as well argue that the program should figure out *everything* >> above. Obviously, that wouldn't be funny. >> > I claim it would be easier to provide a function that expands > parameters, than to force expansion. Or maybe just provide another > function that provides the raw parameters. That is what VMS provides, and what one calls from DEC Ada on VMS. Using the OS-provided code is essential, as interpreting rooted directory multivalued logical names is just too complex for private implementations.