From owner-freebsd-questions@FreeBSD.ORG Tue Jul 3 13:00:18 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 67D6E16A46D for ; Tue, 3 Jul 2007 13:00:18 +0000 (UTC) (envelope-from paul+fbsd@it.ca) Received: from mail.it.ca (mail.it.ca [216.235.7.67]) by mx1.freebsd.org (Postfix) with ESMTP id 20D1C13C45D for ; Tue, 3 Jul 2007 13:00:17 +0000 (UTC) (envelope-from paul+fbsd@it.ca) Received: from mail.it.ca (paul@mail [216.235.7.67]) by mail.it.ca (8.13.3/8.13.3) with ESMTP id l63D0Gjl047659; Tue, 3 Jul 2007 09:00:16 -0400 (EDT) (envelope-from paul+fbsd@it.ca) Received: (from paul@localhost) by mail.it.ca (8.13.3/8.13.3/Submit) id l63D0EWw047658; Tue, 3 Jul 2007 09:00:14 -0400 (EDT) (envelope-from paul+fbsd@it.ca) X-Authentication-Warning: mail.it.ca: paul set sender to paul+fbsd@it.ca using -f Date: Tue, 3 Jul 2007 09:00:14 -0400 From: Paul Chvostek To: Martin McCormick Message-ID: <20070703130014.GB357@it.ca> References: <200707022011.l62KBu8I039211@dc.cis.okstate.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200707022011.l62KBu8I039211@dc.cis.okstate.edu> User-Agent: Mutt/1.5.12-2006-07-14 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (mail.it.ca [216.235.7.67]); Tue, 03 Jul 2007 09:00:16 -0400 (EDT) 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 Reply-To: freebsd-questions@freebsd.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Jul 2007 13:00:18 -0000 On Mon, Jul 02, 2007 at 03:11:56PM -0500, Martin McCormick wrote: > > #! /bin/sh > a = 5 > > that's enough to make it happen. Run that, and you get: > > a: not found > > Interestingly enough, if you run that same script in a > Debian Linux environment, you get: > > ./testfile: line 2: a: command not found 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: [paul@ast1 ~]$ uname -s Linux [paul@ast1 ~]$ ls -l `which bash sh` -rwxr-xr-x 1 root root 616248 Aug 13 2006 /bin/bash lrwxrwxrwx 1 root root 4 Mar 25 20:36 /bin/sh -> bash -- Paul Chvostek