Date: Tue, 3 Jul 2007 09:00:14 -0400 From: Paul Chvostek <paul+fbsd@it.ca> To: Martin McCormick <martin@dc.cis.okstate.edu> Cc: freebsd-questions@freebsd.org Subject: Re: The worst error message in history belongs to... BIND9! Message-ID: <20070703130014.GB357@it.ca> In-Reply-To: <200707022011.l62KBu8I039211@dc.cis.okstate.edu> References: <200707022011.l62KBu8I039211@dc.cis.okstate.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <paul@it.ca>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070703130014.GB357>