comp.lang.ada
 help / color / mirror / Atom feed
From: Hyman Rosen <hyrosen@mail.com>
Subject: Re: Ada.Command_Line.Argument_Count question
Date: Wed, 23 Sep 2009 09:03:10 -0400
Date: 2009-09-23T09:03:10-04:00	[thread overview]
Message-ID: <n0pum.10660$tG1.1002@newsfe22.iad> (raw)
In-Reply-To: <ace5c053-ab40-4ec8-906f-ff2e24b19e1b@12g2000pri.googlegroups.com>

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.



  reply	other threads:[~2009-09-23 13:03 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-15 20:58 Ada.Command_Line.Argument_Count question 
2009-09-15 21:37 ` Gautier write-only
2009-09-16  6:21   ` 
2009-09-16 18:43   ` Keith Thompson
2009-09-22 19:52     ` Gautier write-only
2009-09-22 20:00       ` Hyman Rosen
2009-09-23  0:20         ` Gautier write-only
2009-09-23  1:07           ` Adam Beneschan
2009-09-23 13:03             ` Hyman Rosen [this message]
2009-09-23 16:06             ` Gautier write-only
2009-09-24  0:31               ` Björn Persson
2009-09-24  1:11                 ` Adam Beneschan
2009-09-25 12:25                   ` Stephen Leake
2009-09-15 21:55 ` Adam Beneschan
2009-09-16  6:20   ` 
2009-09-16 10:41 ` Jeffrey R. Carter
2009-09-17 13:50 ` John McCabe
2009-09-18  5:12   ` sjw
2009-09-18 15:03     ` John McCabe
2009-09-18 22:16       ` Robert A Duff
2009-09-21 15:09         ` John McCabe
2009-09-21 15:17           ` Dmitry A. Kazakov
2009-09-21 19:44           ` sjw
2009-09-22 11:01             ` John McCabe
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox