Return to BSD News archive
Newsgroups: comp.unix.bsd.freebsd.misc Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!nntp.coast.net!howland.erols.net!news-peer.gsl.net!news.gsl.net!ix.netcom.com!netcom.com!stanb From: stanb@netcom.com (Stan Brown) Subject: Re: Serious brain damage in /bin/sh for FreeBSD 2.1.5 Message-ID: <stanbE1puHB.E20@netcom.com> Organization: NETCOM On-line Communication Services (408 261-4700 guest) X-Newsreader: NN version 6.5.0 #3 (NOV) References: <stanbE1M2D2.38I@netcom.com> <stanbE1Mw49.41q@netcom.com> <57p5ad$jmv@ns.qnis.net> Date: Sun, 1 Dec 1996 03:46:23 GMT Lines: 48 Sender: stanb@netcom17.netcom.com phil@ns.qnis.net (Phil Jensen) writes: >In article <stanbE1Mw49.41q@netcom.com>, Stan Brown <stanb@netcom.com> wrote: >>stanb@netcom.com (Stan Brown) writes: >> No that;s part of my pint./bin/sh as suplied with FreeBSD 2.1.5 is >> neitger posix compliant, nor bourne shell compliant. It has some >> features of the posix shell that cause it be try to do things that iy >> can't do, because it's not fully posix compliant. >What are you talking about? Have you even to read the man pages on the >Bourne shell? (It is actually ash, a 100% pd clone of the Bourne shell.) >Quoting the gospel: Somehow you are misssing a very basic point (did you read my original post ?) Here is the basic problem. Assume a desire to use ksh and a $ENV file for it. Assum that this file contains *any* construct not accepted by the current version of the FreeBSD /bin/sh. Now show me how to make this $ENV file smart enough to not break *all* system functions implemented as a /bin/sh script. Here are thisng that *won't* work. 1. checking $SHELL (/bin/sh doesn't change the value of this). 2. checking $0 (this won't work since this will be the scripts name not /bin/sh). 3. unseting $ENV at the end of the $ENV file. These are the only things I can tink of to try. None of them work. The result of this is that if I set up my shell to be /usr/bin/ksh, and have my .profile file set $ENV, then all system functions implemented as shell scripts are broken. If anyone has any ideas on how to work around this, I would love to hear them. -- Stan Brown stanb@netcom.com 404-996-6955 Factory Automation Systems Atlanta Ga. -- Look, look, see Windows 95. Buy, lemmings, buy! Pay no attention to that cliff ahead... Henry Spencer (c) 1996 Stan Brown. Redistribution via the Microsoft Network is prohibited.