*BSD News Article 61007


Return to BSD News archive

Newsgroups: comp.unix.bsd.freebsd.misc
Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.mel.connect.com.au!munnari.OZ.AU!news.ecn.uoknor.edu!news.cis.okstate.edu!news.ksu.ksu.edu!news.physics.uiowa.edu!math.ohio-state.edu!deshaw.com!christos
From: christos@deshaw.com (Christos Zoulas)
Subject: Re: /bin/sh isn't Bourne shell
Message-ID: <DM1x4C.GML@deshaw.com>
Sender: usenet@deshaw.com
Nntp-Posting-Host: es2
Organization: D. E. Shaw & Co.
References: <4ekrik$rlf@eccles.dsbc.icl.co.uk> <xcdensholio.fsf@woodlawn.uchicago.edu> <4enl74$ifr@eccles.dsbc.icl.co.uk>
Date: Wed, 31 Jan 1996 15:17:00 GMT
Lines: 29

In article <4enl74$ifr@eccles.dsbc.icl.co.uk> E.J.Randall@bra0126.wins.icl.co.uk writes:
>Soren Dayton (csdayton+usenet@midway.uchicago.edu) wrote:
>: Our friend, ejr@dickens.bra01.icl.co.uk (Ed Randall), wrote:
>
>: > ...[deleted]...
>
>:  sounds like a ksh to me... but you knew that.
>
>/bin/ksh is the ksh which I installed;  but /bin/sh is the /bin/sh
>that installed from the FreeBSD2.1.0-R distribution.
>It's this /bin/sh that I'm complaining about, not pdksh !
>
>Read the man page on sh(1);  Search for "ENV" and "alias". Those words are
>there, I don't think they should be !

Well, they need to be there if sh(1) is to be POSIX compliant.

>What is the /bin/sh that comes with 2.1.0-R by default ?

It is ash. But it has been modified by CSRG to be almost POSIX compliant.

>How do I disable the extended "features" in it ?

You should not. From the purist point of view and the least suprise principle,
yes, the Bourne shell should be the old SVR3 Bourne shell. On the other hand,
if your system is trying to be POSIX compliant, it needs a shell that has
those features you are trying to eliminate.

christos