Return to BSD News archive
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.uoknor.edu!news.nodak.edu!netnews1.nwnet.net!news.u.washington.edu!news.alt.net!news1.alt.net!news.exodus.net!aimnet.com!netserv.com!pagesat.net!jolt.pagesat.net!news From: "Roy A. Gilmore" <royg@pinsight.com> Newsgroups: comp.unix.bsd.freebsd.misc Subject: Re: /bin/sh isn't Bourne shell Date: Fri, 02 Feb 1996 01:11:47 -0800 Organization: RAGged Software Lines: 52 Distribution: world Message-ID: <3111D553.39F4@pinsight.com> References: <4ekrik$rlf@eccles.dsbc.icl.co.uk> <xcdensholio.fsf@woodlawn.uchicago.edu> <4enl74$ifr@eccles.dsbc.icl.co.uk> NNTP-Posting-Host: 165.90.156.119 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 2.0b6a (Win16; I) Ed Randall wrote: > > 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 ! > > What is the /bin/sh that comes with 2.1.0-R by default ? > How do I disable the extended "features" in it ? > > Thanks, > > Ed Ed, The /bin/sh that ships with FreeBSD 2.1.0-R is, as far as I can tell, the same /bin/sh that ships with the <stock> 4.4BSD-Lite distribution. So, complaints should more properly be addressed to CSRG at Berkeley. As a work-around for your problem with aliases, in the man page it says that your $ENV file you should include code something like this: case $- in *i*) # commands for interactive use only ... esac If you bracket your aliases this way, they won't be read for shell scripts. Hope this helps, RAG ///////////////////////////////// // Roy A. Gilmore // // // // Internet: royg@pinsight.com // // CompuServe: 72263,3075 // // America Online: RAGged Roy // // Prodigy: SMDR01B // /////////////////////////////////