Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 03 Jul 2007 18:00:50 +0100
From:      Tom Evans <tevans.uk@googlemail.com>
To:        freebsd@celestial.com
Cc:        freebsd-questions@freebsd.org
Subject:   Re: The worst error message in history belongs to... BIND9!
Message-ID:  <1183482050.1213.3.camel@localhost>
In-Reply-To: <20070703163610.GA6012@ayn.mi.celestial.com>
References:  <200707031344.l63DiEbo098703@dc.cis.okstate.edu> <20070703163610.GA6012@ayn.mi.celestial.com>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help

--=-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--




Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?1183482050.1213.3.camel>