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,e219d94b946dfc26 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!news-in.ntli.net!newsrout1-win.ntli.net!ntli.net!news.highwinds-media.com!xara.net!gxn.net!194.159.246.34.MISMATCH!peer-uk.news.demon.net!kibo.news.demon.net!news.demon.co.uk!demon!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Ada.Command_Line and wildcards Date: Sat, 24 Feb 2007 16:37:27 +0000 Organization: Pushface Message-ID: References: <45dcaed8_6@news.bluewin.ch> <1172132169.423514.271890@s48g2000cws.googlegroups.com> <87hctei5pf.fsf@ludovic-brenta.org> NNTP-Posting-Host: pogner.demon.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news.demon.co.uk 1172335048 23766 62.49.19.209 (24 Feb 2007 16:37:28 GMT) X-Complaints-To: abuse@demon.net NNTP-Posting-Date: Sat, 24 Feb 2007 16:37:28 +0000 (UTC) Cancel-Lock: sha1:GRJ9sbUG4rwdjv1423EAf7d3++0= User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.92 (darwin) Xref: g2news2.google.com comp.lang.ada:9494 Date: 2007-02-24T16:37:27+00:00 List-Id: Anders Wirzenius writes: > ... so one can ask why the design was not done the opposite way: If > you want to have the shell to expand, use an option (like find -x > *.adb), else the parameter is passed as such to the application. That sounds a very odd design. The shell would have to parse the command line to see if there was an option requiring expansion. And what if -x already had a meaning to the program? The Unix shell design seems quite clear -- unescaped wildcards get expanded. Of course, it's not just '*' wildcards; expressions such as *.ad[bs] or foo.{adb,ads} also have their place. I think we ought to live with the shells the way they are -- it's true of Ada, after all.