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: a07f3367d7,6e64435d2a7280f2 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!postnews.google.com!j9g2000prh.googlegroups.com!not-for-mail From: Adam Beneschan Newsgroups: comp.lang.ada Subject: Re: Ada.Command_Line.Argument_Count question Date: Wed, 23 Sep 2009 18:11:03 -0700 (PDT) Organization: http://groups.google.com Message-ID: <9c6b23c3-a1ab-4f73-a46f-2b0e2644d713@j9g2000prh.googlegroups.com> References: <4ab00009$0$282$14726298@news.sunsite.dk> <3ba36876-37c8-44ab-8f82-5fb7c7733163@l35g2000vba.googlegroups.com> <7hvsv8F2vbk5mU1@mid.individual.net> 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 1253754668 23098 127.0.0.1 (24 Sep 2009 01:11:08 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 24 Sep 2009 01:11:08 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: j9g2000prh.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),gzip(gfe),gzip(gfe) Xref: g2news2.google.com comp.lang.ada:8446 Date: 2009-09-23T18:11:03-07:00 List-Id: On Sep 23, 5:31=A0pm, Bj=F6rn Persson wrote: > You might argue that programs that have their own pattern matching featur= es > should use a different set of special characters to distinguish the patte= rns > from those that the shell expands, but that's a bad idea in my opinion. > Having multiple different syntaxes makes it hard to remember when to use > which syntax. Multiple syntaxes is a bad idea, but I've always wanted a way to add a flag to certain executables to tell the shell "don't expand wildcards when running this executable". Then you could actually write a command of the sort that exists on other OS's: rename *.ada *.adb (The shell wouldn't expand either parameter. The "rename" program would be responsible for searching for files that matched the first parameter. Ideally, this would be accomplished by a library routine that the shell also uses when it does expand.) -- Adam