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=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,7ec96df455443b0a X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!postnews.google.com!k39g2000yqd.googlegroups.com!not-for-mail From: Ludovic Brenta Newsgroups: comp.lang.ada Subject: Re: What are some of the uses for Ada? Date: Wed, 9 Jun 2010 00:38:17 -0700 (PDT) Organization: http://groups.google.com Message-ID: <96682bdb-1dec-40d0-989f-5120ce8e5ef5@k39g2000yqd.googlegroups.com> References: <8a40983e-59b4-4622-94fa-cd39146060bc@d37g2000yqm.googlegroups.com> <87r5kgbrj0.fsf@hugsarin.sparre-andersen.dk> <1mrns6fcwj2ha.1m3ujk312dl05.dlg@40tude.net> NNTP-Posting-Host: 153.98.68.197 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1276069097 29103 127.0.0.1 (9 Jun 2010 07:38:17 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 9 Jun 2010 07:38:17 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: k39g2000yqd.googlegroups.com; posting-host=153.98.68.197; posting-account=pcLQNgkAAAD9TrXkhkIgiY6-MDtJjIlC User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.0.6) Gecko/2009012111 Red Hat/3.0.6-1.el5 Firefox/3.0.6,gzip(gfe) Xref: g2news1.google.com comp.lang.ada:11493 Date: 2010-06-09T00:38:17-07:00 List-Id: Dmitry A. Kazakov wrote on comp.lang.ada: > On Wed, 09 Jun 2010 09:21:07 +0200, Jacob Sparre Andersen wrote: > > But Ada is not always my first choice for solving a problem. =A0When I > > solve system administration tasks, I often use Bash. > > Huh, what about bash arrays. Aren't they just great? What about a variabl= e > modified in the loop dealing with a pipe? Nice thing, lot of fun. > Processing double quotation marks in the bodies of strings. Just deliciou= s! > > If there were Ada interpreter for Linux I would never use bash. But even > without it, each time I write a script I must later admit, that it would = be > better and *quicker* to use a full-blown Ada program instead. There exists such an interpreter, it is called BUSH (BUsiness SHell): http://www.pegasoft.ca/bush.html I've been toying with the idea of packaging it for Debian but never got around to it, so I still use bash on the command line and dash for scripts. However, if I ever need something as sophisticated as an array, I immediately switch to Ada. -- Ludovic Brenta.