From owner-freebsd-questions@FreeBSD.ORG Wed Jul 4 13:52:35 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7149C16A46D for ; Wed, 4 Jul 2007 13:52:35 +0000 (UTC) (envelope-from tedm@toybox.placo.com) Received: from mail.freebsd-corp-net-guide.com (mail.freebsd-corp-net-guide.com [65.75.192.90]) by mx1.freebsd.org (Postfix) with ESMTP id 15A0813C4BF for ; Wed, 4 Jul 2007 13:52:34 +0000 (UTC) (envelope-from tedm@toybox.placo.com) Received: from TEDSDESK (nat-rtr.freebsd-corp-net-guide.com [65.75.197.130]) by mail.freebsd-corp-net-guide.com (8.13.8/8.13.8) with SMTP id l64DqUJJ041379; Wed, 4 Jul 2007 06:52:31 -0700 (PDT) (envelope-from tedm@toybox.placo.com) From: "Ted Mittelstaedt" To: , Date: Wed, 4 Jul 2007 06:53:05 -0700 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) In-Reply-To: <20070703163610.GA6012@ayn.mi.celestial.com> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1896 Importance: Normal X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (mail.freebsd-corp-net-guide.com [65.75.192.90]); Wed, 04 Jul 2007 06:52:31 -0700 (PDT) Cc: Subject: RE: The worst error message in history belongs to... BIND9! X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Jul 2007 13:52:35 -0000 > -----Original Message----- > From: owner-freebsd-questions@freebsd.org > [mailto:owner-freebsd-questions@freebsd.org]On Behalf Of Bill Campbell > Sent: Tuesday, July 03, 2007 9:36 AM > To: freebsd-questions@freebsd.org > Subject: Re: The worst error message in history belongs to... BIND9! > > > On Tue, Jul 03, 2007, Martin McCormick wrote: > >Paul Chvostek writes: > >> This is actually just the difference between sh and bash. You'll see > >> the latter error if you type `a = 5` in bash in any OS. It just so > >> happens that most Linux distributions don't have a real sh: > > > > I kind of thought that was the real issue. While > >something like this is maybe slightly annoying at times, the > >differences in, say, arithmetic handling and loops can sometimes > >mean rewriting parts of shell scripts depending on whether it is > >going to run in BSD or Linux. > > That's a major argument for doing things in python or perl as > they are consistent across all platforms. While perl has a well > deserved reputation for looking like modem noise, it's certainly > no worse than shell scripts. Actually perl has a lot of problems too. One of the biggest is that perl script writers always seem to think like you, in that perl is consistent across all platforms. The biggest problems I've seen with perl scripts are when people use perl extensions that are not on the system. You then have to go find the extension they use and very few of the perl script writers seem to be smart enough to put a section at the beginning of their scripts that define the CPAN location of the particular extensions they are using. The second biggest problem is perl script writers using constructs that are valid in Perl 5.6 and later but not valid in Perl 5.0 I don't know how many times I've wanted to strangle someone when trying to run a perl script under Perl 5.0 that had ONE single friggin statement in the entire thousand line script that isn't valid under 5.0 but is under 5.6 And I've also run across a number of Perl extensions that won't run under 5.0 as well, even though the authors are supposed to regression test under 5.0 > > Pure /bin/sh is very limited in its constructs compared to other > shells such as ksh, bash, etc. > ksh is consistent across platfroms, of course, you generally have to compile it for the system your on. If you cannot work within a limited construct set your not much of a programmer. Ted