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,e219d94b946dfc26 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!198.186.194.250.MISMATCH!transit3.readnews.com!news-out.readnews.com!panix!newsfeed-00.mathworks.com!nntp.TheWorld.com!not-for-mail From: Robert A Duff Newsgroups: comp.lang.ada Subject: Re: Ada.Command_Line and wildcards Date: Sat, 24 Feb 2007 14:22:07 -0500 Organization: The World Public Access UNIX, Brookline, MA Message-ID: References: <45dcaed8_6@news.bluewin.ch> <1172132169.423514.271890@s48g2000cws.googlegroups.com> <1172257457.802242.307050@j27g2000cwj.googlegroups.com> NNTP-Posting-Host: shell01.theworld.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: pcls4.std.com 1172344927 12200 192.74.137.71 (24 Feb 2007 19:22:07 GMT) X-Complaints-To: abuse@TheWorld.com NNTP-Posting-Date: Sat, 24 Feb 2007 19:22:07 +0000 (UTC) User-Agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.3 (irix) Cancel-Lock: sha1:rQWupnOhdZzBxq+up8QsULr6TfA= Xref: g2news2.google.com comp.lang.ada:9498 Date: 2007-02-24T14:22:07-05:00 List-Id: "Hyman Rosen" writes: > 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. The way they did it simply doesn't work. I shouldn't have to use a different method (e.g. xargs) to pass a lot of file names to a command than to pass a small number. It's not that hard to design it so it works for any number of files, no matter how big disk drives get in the future. And still keep things small and simple. And xargs doesn't work, either. It works for 'grep', but doesn't work for 'wc'. So much for the alleged simplicity of doing everything in the shell. > I don't understand. Doesn't "find" have exactly the interface that you > claim to want? Certainly not. I use find all the time, and I hate it. >> 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! Yeah, I guess you're right about that. Sorry. - Bob