Re: Ada.Command_Line and wildcards



This is an OS (shell) issue, surely?

Alas, no.
I forgot to mention: I tested both programs on both Windows 98 and XP.
In both systems, the OA-compiled program gives "*.adb" and the GNAT-
compiled the list of files with ".adb" extension.
To Adrian, enclosing with '"' works, thanks, but then the syntax
differs from the usual one for a command-line tool...
I am just suprised by the GNAT behaviour, for two reasons:
- I did not find (or missed) something about it in the RM (95)
- there is also a GNAT.Command_Line that explicitely intends to do
wildcard expansions; so why also GNAT's Ada.Command_Line should do it,
silently ?

G.

.



Relevant Pages

  • Re: Ada.Command_Line and wildcards
    ... I was surprised to see Ada.Command_Line in GNAT serving ... with an "adb" extension! ... ObjectAda gives the argument as-is. ...
    (comp.lang.ada)
  • Re: Ada.Command_Line and wildcards
    ... I was surprised to see Ada.Command_Line in GNAT serving ... with an "adb" extension! ... Args "*.adb" ...
    (comp.lang.ada)