Re: Ada.Command_Line and wildcards



gautier_niouzes@xxxxxxxxxxx a écrit :
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 ?

I think it is a gcc feature. Because gcc is often used to port Unix applications to Windows, the gcc library emulates Unix behaviour on windows.

Too bad that Unix behaviour was wrong in the first place...

--
---------------------------------------------------------
J-P. Rosen (rosen@xxxxxxxxx)
Visit Adalog's web site at http://www.adalog.fr
.



Relevant Pages

  • Re: IsBadWritePtr equivalent?
    ... an implementation of "IsBadWritePtr" for gcc to run the app on ... IsBadWritePtr in Windows, basically verifies that the calling process ... The IsBadXxxPtr() functions check to see if the memory being pointed to ...
    (comp.lang.c)
  • Re: Different code behaviour in Unix & Windows
    ... Please post compiler versions for both Windows and Linux. ... gcc --version will pop the version number for gcc. ... algorithm guarantees that the final result will fit into `a`. ...
    (comp.lang.c)
  • Re: OT: Simple to use programming environment for Windows
    ... Runs under Windows, if only in a DOS box. ... Unix shell, but I have used command line environments before (I wrote my ... The gcc files on the net are .tar.gz so I assume this is some zip file ...
    (sci.math)
  • Re: OK Dirtbag, heres your chance.........
    ... I guess the problem could be my Linux based browser in a Windows only ... And speaking of Gentoo... ... the latest gcc version has to be one of the greatest examples of ...
    (misc.invest.stocks)
  • Re: gfortran: OK, I quit, you win
    ... > gfortran working under Windows. ... let me explain a bit how the GCC and gfortran ... > only distributed as a source code package ready to be build on a Unix ...
    (comp.lang.fortran)