Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!convex!egsner!texrex!rmfowler From: rmfowler@texrex.uucp (Rex Fowler) Newsgroups: comp.sys.3b1 Subject: Re: cnews with ksh - problems Keywords: Cnews, ksh, active file Message-ID: <1991Feb12.002413.577@texrex.uucp> Date: 12 Feb 91 00:24:13 GMT References: <1991Feb10.201546.14336@ceilidh.beartrack.com> Organization: texrex - Personal System - Dallas, TX Lines: 39 In article <1991Feb10.201546.14336@ceilidh.beartrack.com> dnichols@ceilidh.beartrack.com writes: > > > I looked for a way to test whether I was running under ksh (at least >on this machine) and settled on an 'if [ $RANDOM -ne $RANDOM ]' to tell me >that I was running ksh. If it passed this test, I would re-start with >/bin/sh. With this news postings worked smoothly, at the slight cost of a >restart if ksh were the one running. Yeah, i had to add something like this to some files as I recall.. unset > /dev/null 2>&1 || (kill $$; /bin/sh $0 $*) > > I just recently got the 'KSH+IN' from osu-cis. As an experiment, I >commented out my test code, and things worked smoothly without the test. (I >had been running the ksh from fixdisk 2.0). > > Hope that this helps others faced with the same problem. > >BTW - this also fixed the problem of my .kshistory being owned by root after >a 'su'. Aha! Looks like I better get the KSH from osu-cis. That .kshistory problem really is annoying. > > Good Luck All > DoN. >-- >Donald Nichols (DoN.) | Voice (Days): (703) 664-1585 >D&D Data | Voice (Eves): (703) 938-4564 >Disclaimer: from here - None | Email: > --- Black Holes are where God is dividing by zero --- -- Rex Fowler UUCP: egsner!texrex!rmfowler