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=-0.3 required=5.0 tests=BAYES_00,FREEMAIL_FROM, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,ed4552e228419ca1 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!feeder3.cambriumusenet.nl!feed.tweaknews.nl!217.73.144.44.MISMATCH!ecngs!feeder.ecngs.de!feeder.news-service.com!94.75.214.39.MISMATCH!aioe.org!.POSTED!not-for-mail From: anon@att.net Newsgroups: comp.lang.ada Subject: Re: Passing shell arguments to Ada programs the Linux way Date: Sun, 3 Jul 2011 05:44:07 +0000 (UTC) Organization: Aioe.org NNTP Server Message-ID: References: <958e152b-8b68-4381-9393-6b21e9c61eda@b2g2000vbo.googlegroups.com> Reply-To: anon@anon.org NNTP-Posting-Host: FoLgcruaCpM6jsanDTynrA.user.speranza.aioe.org X-Complaints-To: abuse@aioe.org X-Notice: Filtered by postfilter v. 0.8.2 X-Newsreader: IBM NewsReader/2 2.0 Xref: g2news1.google.com comp.lang.ada:20071 Date: 2011-07-03T05:44:07+00:00 List-Id: Ada is defined as an "Operating System independent" language. Which means if it works in Linux it MUST work for all Operating Systems not just Linux. And most want their programs to work in Linux, Windows, etc. So, for Ada users we process the "command line" by the definition set in the RM by using the package "Ada.Command_Line". In other way, is a waste of time for Ada users. Note: As for "GNAT.Command_Line", well it can only be found in Adacore's GNAT Ada. Which some will say it not a standard RM Ada package, so why use it. because it might disappear next year. Which means the programmer may have to support that package that they do not fully understand. The problem with Adacore's non RM packages (GNAT.*, and a lot of System.*) is that they are to "Operating System" dependant. Also, "Ada.Command_Line" will work for Linux 3.x. Will these others packages, that's the question. This is the problem when designing packages for Linux at the end of a major design steam such as Linux 0.x, 1.x and 2,x and now 3.x. In , Simon Wright writes: >A famous IT technical writer writes: > >> You may find a solution on how to pass shell arguments to an Ada >> program the Linux way. The code has been tested on Linux. As it makes >> use of the GCC suite, the code is usable under any operating system >> which implements the GCC suite. > >GNAT users could also look at GNAT.Command_Line.