From owner-freebsd-questions@FreeBSD.ORG Tue Jul 3 16:33:40 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 3FD9916A421 for ; Tue, 3 Jul 2007 16:33:40 +0000 (UTC) (envelope-from bill@ayn.mi.celestial.com) Received: from ayn.mi.celestial.com (hayek.celestial.com [192.136.111.12]) by mx1.freebsd.org (Postfix) with ESMTP id 1FA5A13C455 for ; Tue, 3 Jul 2007 16:33:39 +0000 (UTC) (envelope-from bill@ayn.mi.celestial.com) Received: from localhost (localhost [127.0.0.1]) by ayn.mi.celestial.com (Postfix) with ESMTP id E6BC96854F081; Tue, 3 Jul 2007 09:36:10 -0700 (PDT) X-Virus-Scanned: amavisd-new at mi.celestial.com Received: from ayn.mi.celestial.com ([127.0.0.1]) by localhost (ayn.mi.celestial.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id nZEr2d0lug2h; Tue, 3 Jul 2007 09:36:10 -0700 (PDT) Received: by ayn.mi.celestial.com (Postfix, from userid 203) id CB8926854F080; Tue, 3 Jul 2007 09:36:10 -0700 (PDT) Date: Tue, 3 Jul 2007 09:36:10 -0700 From: Bill Campbell To: freebsd-questions@freebsd.org Message-ID: <20070703163610.GA6012@ayn.mi.celestial.com> Mail-Followup-To: freebsd-questions@freebsd.org References: <200707031344.l63DiEbo098703@dc.cis.okstate.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200707031344.l63DiEbo098703@dc.cis.okstate.edu> User-Agent: Mutt/1.5.11 OpenPKG/2.5 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 Reply-To: freebsd@celestial.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Jul 2007 16:33:40 -0000 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. Pure /bin/sh is very limited in its constructs compared to other shells such as ksh, bash, etc. 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-1676 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