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,6bf1c4b845bd2160 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!nntp.club.cc.cmu.edu!feeder.erje.net!newsfeed.straub-nv.de!newsfeed01.sul.t-online.de!t-online.de!newsfeed.arcor.de!newsspool2.arcor-online.net!news.arcor.de.POSTED!not-for-mail Date: Tue, 24 Aug 2010 19:24:41 +0200 From: Georg Bauhaus User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.2.8) Gecko/20100802 Thunderbird/3.1.2 MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: What about a glob standard method in Ada.Command_Line ? References: <4c6f9837$0$5420$ba4acef3@reader.news.orange.fr> <4c739e76$0$6992$9b4e6d93@newsspool4.arcor-online.net> <152a2z5en4z2o$.xjsuqr7s8yak$.dlg@40tude.net> <4c73e859$0$6991$9b4e6d93@newsspool4.arcor-online.net> <4c73fcf6$0$6992$9b4e6d93@newsspool4.arcor-online.net> In-Reply-To: <4c73fcf6$0$6992$9b4e6d93@newsspool4.arcor-online.net> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Message-ID: <4c740059$0$6974$9b4e6d93@newsspool4.arcor-online.net> Organization: Arcor NNTP-Posting-Date: 24 Aug 2010 19:24:41 CEST NNTP-Posting-Host: 28cdb734.newsspool4.arcor-online.net X-Trace: DXC=8mLW97B?CNI@k=MdN::NBI4IUKJLh>_cHTX3jM<]YHLSAgh1O X-Complaints-To: usenet-abuse@arcor.de Xref: g2news1.google.com comp.lang.ada:13707 Date: 2010-08-24T19:24:41+02:00 List-Id: On 24.08.10 19:10, Georg Bauhaus wrote: > Efficiency of glob is unpredictable. Linear scans of a directory > are slightly different in this regard [*]. I meant (forgetting the footnote, sorry): ls *.foo may just not work, since glob may hit a memory limit when building the list of filenames. On the other hand, ls | while read filename do case $filename in *.foo) ...;; does not have this problem.