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,UTF8 Path: g2news2.google.com!news4.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!tiscali!newsfeed1.ip.tiscali.net!proxad.net!nerim.net!oleane.net!oleane!hunter.axlog.fr!nobody From: Jean-Pierre Rosen Newsgroups: comp.lang.ada Subject: Re: Ada.Command_Line and wildcards Date: Thu, 22 Feb 2007 17:20:15 +0100 Organization: Adalog Message-ID: References: <45dcaed8_6@news.bluewin.ch> <1172132169.423514.271890@s48g2000cws.googlegroups.com> <87hctei5pf.fsf@ludovic-brenta.org> NNTP-Posting-Host: mailhost.axlog.fr Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Trace: s1.news.oleane.net 1172163686 25094 195.25.228.57 (22 Feb 2007 17:01:26 GMT) X-Complaints-To: abuse@oleane.net NNTP-Posting-Date: Thu, 22 Feb 2007 17:01:26 +0000 (UTC) User-Agent: Thunderbird 1.5.0.9 (Windows/20061207) In-Reply-To: <87hctei5pf.fsf@ludovic-brenta.org> Xref: g2news2.google.com comp.lang.ada:9419 Date: 2007-02-22T17:20:15+01:00 List-Id: Ludovic Brenta a écrit : > There are three such "other functions": > > $ cat '*.ads *.adb' | wc -l > loc.txt > $ cat "*.ads *.adb" | wc -l > loc.txt > $ cat \*.ads \*.adb | wc -l > loc.txt > > So could you please explain why you think the Unix behaviour is > "wrong"? > No, that's from the user's side, not from the program's side. It should be up to the program to decide whether "*" is to be interpreted as a wild-card or not. For example, I have a utility where I pass Ada unit names (not file names), but wildcarding is allowed for the unit names (handled by the program). If by chance I have a file that matches the wildcard in the current directory, I get an absolutely useless parameter. And I hate having to tell the user (even if I am the only known user of the program :-) that the parameters must be quoted. -- --------------------------------------------------------- J-P. Rosen (rosen@adalog.fr) Visit Adalog's web site at http://www.adalog.fr