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=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,e219d94b946dfc26 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!postnews.google.com!j27g2000cwj.googlegroups.com!not-for-mail From: "Hyman Rosen" Newsgroups: comp.lang.ada Subject: Re: Ada.Command_Line and wildcards Date: 23 Feb 2007 11:04:17 -0800 Organization: http://groups.google.com Message-ID: <1172257457.802242.307050@j27g2000cwj.googlegroups.com> References: <45dcaed8_6@news.bluewin.ch> <1172132169.423514.271890@s48g2000cws.googlegroups.com> NNTP-Posting-Host: 204.253.248.208 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1172257463 13221 127.0.0.1 (23 Feb 2007 19:04:23 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Fri, 23 Feb 2007 19:04:23 +0000 (UTC) In-Reply-To: User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.1; .NET CLR 2.0.50727) Gecko/20061204 Firefox/2.0.0.1,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: j27g2000cwj.googlegroups.com; posting-host=204.253.248.208; posting-account=lJDDWg0AAACmMd7wLM4osx8JUCDw_C_j Xref: g2news2.google.com comp.lang.ada:9468 Date: 2007-02-23T11:04:17-08:00 List-Id: On Feb 22, 8:15 pm, Robert A Duff wrote: > Yuck -- bad design! The designers of UNIX didn't feel that it was necessary for every program to incorporate a wildcard expander when that could be done externally. Back then keeping programs small and simple was a virtue. > And there's no wildcard that means "all subdirectories, recursively". And no wildcard that means "all files that have changed since yesterday". There are an infinite number of things that you might want to specify. Many of them won't have been thought of when the programs which could benefit from them are written. That's why it's better to do these things externally, and just have one program to modify when you come up with your new wildcards. > So we're stuck with kludgery like "find" and "xargs". Yuck. I don't understand. Doesn't "find" have exactly the interface that you claim to want? > And I can't create a command that works like this: > search *.ada "some string" Huh? Why in the world not? The program knows how many arguments it has, and it can get to the last one as easily as the first!