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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,4f316de357ae35e9 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-08-03 06:51:45 PST Newsgroups: comp.lang.ada Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!msc1.onvoy!ply1.onvoy!upp1.onvoy!onvoy.com!news-out.visi.com!hermes.visi.com!uunet!ash.uu.net!world!news From: Robert A Duff Subject: Re: FAQ and string functions Sender: news@world.std.com (Mr Usenet Himself) Message-ID: Date: Sat, 3 Aug 2002 13:51:11 GMT References: <20020730093206.A8550@videoproject.kiev.ua> <4519e058.0207300548.15eeb65c@posting.google.com> <20020731104643.C1083@videoproject.kiev.ua> <3D487CDA.24D9B1AE@san.rr.com> <20020801142038.J1080@videoproject.kiev.ua> <3D495747.C71E4CDC@san.rr.com> <3D4B2631.7050509@telepath.com> NNTP-Posting-Host: shell01.theworld.com Organization: The World Public Access UNIX, Brookline, MA X-Newsreader: Gnus v5.7/Emacs 20.7 Xref: archiver1.google.com comp.lang.ada:27650 Date: 2002-08-03T13:51:11+00:00 List-Id: Ted Dennison writes: > Generally, I've found it best to rewrite any shell scripts that get > beyond a screen or two in Ada, using the "System" call (or its > equivalent on that OS) to execute commands. Maintaing large TCL or sh > scripts just isn't worth the hassle (a little lesson from the school of > hard knocks here). I've been writing most "scripty" stuff in Ada lately, too. I believe Robert Dewar also advocated that approach recently. It beats Perl, sh, awk, .bat files, etc, but it's far from a perfect solution. You mention "system" call. Fine, but in many cases (if I invoke the same external program twice, or think I might later), I tend to encapsulate that in some sort of abstraction, if possible. - Bob