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,FREEMAIL_FROM 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 Path: g2news1.google.com!news3.google.com!proxad.net!feeder1-2.proxad.net!usenet-fr.net!gegeweb.org!aioe.org!not-for-mail From: =?iso-8859-15?Q?Yannick_Duch=EAne_=28Hibou57=29?= Newsgroups: comp.lang.ada Subject: Re: What about a glob standard method in Ada.Command_Line ? Date: Tue, 24 Aug 2010 20:42:42 +0200 Organization: Ada @ Home Message-ID: 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> <4c740059$0$6974$9b4e6d93@newsspool4.arcor-online.net> NNTP-Posting-Host: 0sX9bEY91BRWIOXbIebBGQ.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15; format=flowed; delsp=yes Content-Transfer-Encoding: Quoted-Printable X-Complaints-To: abuse@aioe.org X-Notice: Filtered by postfilter v. 0.8.2 User-Agent: Opera Mail/10.61 (Win32) Xref: g2news1.google.com comp.lang.ada:13710 Date: 2010-08-24T20:42:42+02:00 List-Id: Le Tue, 24 Aug 2010 19:24:41 +0200, Georg Bauhaus = a =E9crit: > 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. I understand that point, theoretically, not practically. Reaching memory= = limit would typically requires millions of match. This may occur in = theory, less in practice (where you will have at most a thousand... and = = this would be not so common). I though this was a good idea, but do not feel it is worth the reactions= = it produced, so I suggest to just forget it (unless someone feel the = layout of Ada.Command_Line may be part of the good first feeling some ne= w = comers may have about Ada). -- = * 3 lines of concise statements is readable, 10 pages of concise = statements is unreadable ; * 3 lines of verbose statements may looks unuseful, 10 pages of verbose = = statements will never looks too much pedantic