Re: Ada.Command_Line and wildcards



gautier_niouzes@xxxxxxxxxxx wrote:

This is an OS (shell) issue, surely?

Alas, no.
I forgot to mention: I tested both programs on both Windows 98 and XP.

It would be in unix. There, wildcard expansion is a shell matter. Windows only
half-faked it.

What I mean is that if your code is to be run outside of a windows platform,
you'll not see wildcards in your arguments (unless you quote them, as someone
else has pointed elsethread).

But if gnat is deliberately doing expansion to emulate unix behavior, I guess
that should be documented in windows platforms...

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: why not like linux ?
    ... > bash would only benefit if it would do no wildcard expansion, ... > Just choose any partition formatted with Windows-supported FS, ... I got refund for the software and I really do not need Windows ... So you say that your car manufacturer is not responsible for the enginge ...
    (microsoft.public.development.device.drivers)
  • Re: Ada.Command_Line and wildcards
    ... I tested both programs on both Windows 98 and XP. ... It would be in unix. ... wildcard expansion is a shell matter. ... DEL Some_File.Txt ...
    (comp.lang.ada)
  • Re: What is the more popular UNIX flavor?
    ... about my experience with Solaris and Cygwin. ... installing packages. ... needing eg tftp you only need to activate on a Unix system. ... probably need installing first on the equivalent Windows system. ...
    (comp.unix.questions)
  • Re: Five Architectural Flaws in Windows Solved In Mac OS X
    ... But it is still an improvement over Unix, wherein *any executable* can be highly privileged and interact with the user. ... The usual security precautions prevent unauthorized people from doing this, but that's true on Windows also. ... I just got thru upgrading the wifes Mac to Tiger and hpfs is the default. ... This is a more advanced design that Unixes have been trying to duplicate by adding thread support. ...
    (comp.sys.mac.advocacy)
  • Re: Linux no threat to Microsoft
    ... originally developed for Unix. ... Windows has't come on any of the machines I've ever purchased. ... Yet over those years Linux Market Share on the desktop has actually ... philosophy of Apple - later adopted by Microsoft. ...
    (comp.os.linux.setup)

Loading