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: a07f3367d7,6e64435d2a7280f2 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news2.google.com!npeer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!post01.iad.highwinds-media.com!newsfe22.iad.POSTED!6ca2d83b!not-for-mail From: Hyman Rosen User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Ada.Command_Line.Argument_Count question References: <4ab00009$0$282$14726298@news.sunsite.dk> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: X-Complaints-To: abuse@WWWSpace.NET NNTP-Posting-Date: Wed, 23 Sep 2009 13:03:15 UTC Date: Wed, 23 Sep 2009 09:03:10 -0400 Xref: g2news2.google.com comp.lang.ada:8434 Date: 2009-09-23T09:03:10-04:00 List-Id: Adam Beneschan wrote: > "Unix" is not a synonym for "Bourne shell". Just to make things clear, all "normal" UNIX (and Linux) shells will expand '*.adb' into a list of files if there are files in the current directory which match the pattern. They differ in what they do if there are no such files. Bourne shell and its variants (ksh, bash, etc.) will pass '*.adb' literally as an argument to the command. Csh and its variants (tcsh, zsh, etc.) will issue an error message and not execute the command at all. Some shells also allow you to configure this behavior to taste. For formalists who wonder why such a pattern shouldn't "expand" to nothing when no files match, it's because UNIX commands tend to be written to either process a list of files or else standard input when no files are supplied.