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 Path: g2news1.google.com!postnews.google.com!f6g2000pro.googlegroups.com!not-for-mail From: Adam Beneschan Newsgroups: comp.lang.ada Subject: Re: What about a glob standard method in Ada.Command_Line ? Date: Mon, 23 Aug 2010 17:24:26 -0700 (PDT) Organization: http://groups.google.com Message-ID: References: <4c6f9837$0$5420$ba4acef3@reader.news.orange.fr> NNTP-Posting-Host: 66.126.103.122 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1282609466 12741 127.0.0.1 (24 Aug 2010 00:24:26 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Tue, 24 Aug 2010 00:24:26 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: f6g2000pro.googlegroups.com; posting-host=66.126.103.122; posting-account=duW0ogkAAABjRdnxgLGXDfna0Gc6XqmQ User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; WOW64; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.21022; .NET CLR 3.5.30729; .NET CLR 3.0.30618; .NET4.0C),gzip(gfe) Xref: g2news1.google.com comp.lang.ada:13687 Date: 2010-08-23T17:24:26-07:00 List-Id: On Aug 23, 5:02=A0pm, Yannick Duch=EAne (Hibou57) wrote: > Le Tue, 24 Aug 2010 01:06:37 +0200, Randy Brukardt = =A0 > a =E9crit:> It would surely help to have some idea of what a "glob" is! A= nd =A0 > > explained in > > some way which is not specific to any particular OS. > > The old one inherited from first UNIX and which while old is still part o= f =A0 > many core libraries (C, Python, Eiffel, Pascal, etc) and one of the most = =A0 > commonly used to handle command-line parameters, the one which as an =A0 > example, from a "/directory/*.adb" returns an array of strings for all th= e =A0 > files matching the pattern. Although a function like that would perhaps be useful, it would definitely not belong in Ada.Command_Line or a child. Some child of Ada.Directories would be a much better place. By the way, I was just as befuddled as Randy about the meaning of "glob" even though I've done lots of work with Unix and C. The shell expands stuff on the command line, so I've never had any desire to use the program or library function that does this. I thought "glob" meant a typical C program that is so impenetrable that it looks more like a glob of random characters than like actual instructions for a computer...... :) -- Adam