From owner-freebsd-questions@FreeBSD.ORG Tue Jul 3 17:00:55 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 C314216A473 for ; Tue, 3 Jul 2007 17:00:55 +0000 (UTC) (envelope-from tevans.uk@googlemail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.174]) by mx1.freebsd.org (Postfix) with ESMTP id 5771613C46E for ; Tue, 3 Jul 2007 17:00:55 +0000 (UTC) (envelope-from tevans.uk@googlemail.com) Received: by ug-out-1314.google.com with SMTP id o4so152382uge for ; Tue, 03 Jul 2007 10:00:54 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=googlemail.com; s=beta; h=domainkey-signature:received:received:subject:from:to:cc:in-reply-to:references:content-type:date:message-id:mime-version:x-mailer; b=iX2bJxGeC4P6xMnRYeVBICIfxb0MmEMoX9apwZoEnq+OfzK16k64/PKwm9hiL15vl3M8jHMuHHN4Wv+TjwQ7iHBsSgRYd12ZbqO4uVPljb1jGkelSwhDtxqISg7j9KOMQ7MbLcQvhWTDUQwq+rl4IKRWKfKg5dh6GC1nmSI1B3s= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=beta; h=received:subject:from:to:cc:in-reply-to:references:content-type:date:message-id:mime-version:x-mailer; b=REigjWKbjd9CDSrKKCfDCtXWzM9daofkOHEVW+MwYkukg12Y+ynE/x+rBXuCI0XCmaoNk90AoR4XKLmPgvNHzkVpLESpvb1O6w5eXkzZaDDS+FTAAR6n/ugqzwaWT4seHwZTcGtoJwDvgasp7WYucyd3TRT+8lET03de4IiHkWE= Received: by 10.82.136.4 with SMTP id j4mr15809117bud.1183482053600; Tue, 03 Jul 2007 10:00:53 -0700 (PDT) Received: from ?IPv6:::ffff:127.0.0.1%709431296? ( [217.206.187.79]) by mx.google.com with ESMTP id d23sm2569881nfh.2007.07.03.10.00.51 (version=SSLv3 cipher=RC4-MD5); Tue, 03 Jul 2007 10:00:52 -0700 (PDT) From: Tom Evans To: freebsd@celestial.com In-Reply-To: <20070703163610.GA6012@ayn.mi.celestial.com> References: <200707031344.l63DiEbo098703@dc.cis.okstate.edu> <20070703163610.GA6012@ayn.mi.celestial.com> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-Yvl+WPG0q36Rj68FF6Cj" Date: Tue, 03 Jul 2007 18:00:50 +0100 Message-Id: <1183482050.1213.3.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.10.2 FreeBSD GNOME Team Port Cc: freebsd-questions@freebsd.org 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: Tue, 03 Jul 2007 17:00:55 -0000 --=-Yvl+WPG0q36Rj68FF6Cj Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Tue, 2007-07-03 at 09:36 -0700, Bill Campbell wrote: > 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 =3D 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. >=20 > 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. >=20 > Pure /bin/sh is very limited in its constructs compared to other > shells such as ksh, bash, etc. >=20 > Bill > -- > INTERNET: bill@Celestial.COM Bill Campbell; Celestial Software LLC > URL: http://www.celestial.com/ PO Box 820; 6641 E. Mercer Way > FAX: (206) 232-9186 Mercer Island, WA 98040-0820; (206) 236-1= 676 >=20 > Marijuana will be legal some day, because the many law students > who now smoke pot will someday become congressmen and legalize > it in order to protect themselves. > -- Lenny Bruce sh should always be sh compatible on every platform (surprisingly). It may even be defined in one of the POSIX standards. This is why you write shell scripts in sh, even if you prefer csh, ksh or bash as your actual shell. Tom --=-Yvl+WPG0q36Rj68FF6Cj Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) iD8DBQBGioC+lcRvFfyds/cRAt4sAKCsdoNeiQNlUk0KFiWmEIWNlg0jWQCeIZma TJ+ejW28tS8Axw+veQx6KGM= =s6rD -----END PGP SIGNATURE----- --=-Yvl+WPG0q36Rj68FF6Cj--