Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.ecn.uoknor.edu!news.wildstar.net!news.ececs.uc.edu!news.kei.com!news.mathworks.com!EU.net!usenet2.news.uk.psi.net!uknet!usenet1.news.uk.psi.net!uknet!dispatch.news.demon.net!demon!awfulhak.demon.co.uk!awfulhak.demon.co.uk!awfulhak.demon.co.uk!not-for-mail From: brian@anorak.coverform.lan (Brian Somers) Newsgroups: comp.unix.bsd.freebsd.misc Subject: Re: Serious brain damage in /bin/sh for FreeBSD 2.1.5 Date: 3 Dec 1996 00:33:18 -0000 Organization: Coverform Ltd. Lines: 26 Sender: brian@awfulhak.demon.co.uk Message-ID: <57vsge$1o9@anorak.coverform.lan> References: <stanbE1M2D2.38I@netcom.com> <329E96C5.41C67EA6@freebsd.org> <32A17168.446B9B3D@FreeBSD.org> Reply-To: brian%anorak.coverform.lan@awfulhak.demon.co.uk NNTP-Posting-Host: localhost.coverform.lan X-NNTP-Posting-Host: awfulhak.demon.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Newsreader: knews 0.9.8 In article <32A17168.446B9B3D@freebsd.org>, "Jordan K. Hubbard" <jkh@FreeBSD.org> writes: : He's also wrong about the Berkeley people. csh may have originated : there, but nobody in his right mind that I know of actually writes shell : scripts in it. There is only one standard way of writing shell scripts : which will actually run reliably on a large number of UN*X machines, and : that's to write them in pure sh. I would certainly never write a : mainstream shell script in anything else. Except that the ${..##..} and ${..%%..} are hugely useful. Using basename/dirname isn't very portable and the expr/sed syntax is slow and a bitch to interpret. Of course ash has this built in, but a standard bourne shell doesn't. [.....] : /bin/sh should be a lean, mean, : standard by-the-book bourne shell and that's it. I'm surprised that it isn't ! -- Brian <brian%anorak.coverform.lan@awfulhak.demon.co.uk> <http://www.awfulhak.demon.co.uk/> Don't _EVER_ lose your sense of humour.... .