From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: *** X-Spam-Status: No, score=3.8 required=5.0 tests=BAYES_00,INVALID_MSGID, RATWARE_MS_HASH,RATWARE_OUTLOOK_NONAME autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,ed2c270d51f000e1 X-Google-Attributes: gid103376,public From: "David C. Hoos, Sr." Subject: Re: HELP: how to get parameters given to an exe ? Date: 1997/03/28 Message-ID: <01bc3b63$b6bbe6e0$2d8c71a5@dhoossr.iquest.com>#1/1 X-Deja-AN: 228981738 Distribution: world References: Organization: Ada95 Press, Inc. Newsgroups: comp.lang.ada Date: 1997-03-28T00:00:00+00:00 List-Id: First, you must realize that the DOS and UNIX command interpreters (Shells) will not pass the same thing to the executable program, even for identical command lines if the command lines contain wildcard file specifications. In UNIX, for example, the command line argument *.txt will be expanded to the list of filenames in the current directory satisfying the wildcard file specification, while the DOS command interpreter (including Windows 95 and Windows NT) will simply pass the *.txt to the executable. In Ada 83, since the LRM does not specify this feature, each compiler vendor was free to do as he pleased. The various solutions are not portable between compilers. In Ada95, though, the language defines the interface, and in the case of gnat, at least, the wildcards are expanded by the compiler's implementation of the LRM's specification. -- David C. Hoos, Sr., http://www.dbhwww.com http://www.ada95.com Ingrid CHESSEL & David EXCOFFIER wrote in article ... > I'd want to code in Ada83 to following thing: > > I wan't the user be able to pass parameters after the name of the exe file > i wrote. > > e.g.: myprog arg1 arg2 ... > > like in Unix: ls -l (i want to get this "-l") parmeter > or Dos: dir a: ( the "a:") > > Is there a possibility to code this kinda thing in Ada 83, under Unix ??? > > (I think under Unix or dos, the code in Ada might be the same...) > > TTTIA. > > > ----------------------------------- > Ingrid CHESSEL > David EXCOFFIER > > Licence d'informatique > > email: linfo14@java.univ-savoie.fr > ---------------------------------- > >