comp.lang.ada
 help / color / mirror / Atom feed
From: Gautier write-only <gautier_niouzes@hotmail.com>
Subject: Re: Ada.Command_Line.Argument_Count question
Date: Tue, 22 Sep 2009 12:52:30 -0700 (PDT)
Date: 2009-09-22T12:52:30-07:00	[thread overview]
Message-ID: <a0ae777b-e570-4aab-856d-f2492171acb5@p23g2000vbl.googlegroups.com> (raw)
In-Reply-To: lnk4zyenno.fsf@nuthaus.mib.org

On 16 Sep., 20:43, Keith Thompson <ks...@mib.org> wrote:

[about names with wildcards expanded or not into separate arguments]

> The behavior you describe has nothing to do with the compiler, at
> least not on Unix-like systems.  If you type
>     ./my_program *.adb
> in a Unix shell, my_program will see a list of file names; it will
> have no way to know that the list is the result of expanding a
> wildcard expression.  All the processing happens in the shell.  And of
> course programs can be invoked by other programs, not just by the
> shell.

There are exceptions to that. If you type:
unzip archive.zip *.adb
the "*.adb" will, even on Unix, fortunately *not* be expanded...

> On other systems, though, the Ada.Command_Line implementation might
> (optionally?) do some additional processing.

On Windows, the shell doesn't seem to do the expansion, but on the run-
time library side, GNAT does it and Aonix doesn't...
_________________________________________________________
Gautier's Ada programming -- http://sf.net/users/gdemont/
NB: For a direct answer, e-mail address on the Web site!



  reply	other threads:[~2009-09-22 19:52 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 [this message]
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
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