cnews with ksh - problems

Rex Fowler rmfowler at texrex.uucp
Tue Feb 12 11:24:13 AEST 1991

In article <1991Feb10.201546.14336 at> dnichols at 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:     <dnichols at>
>	--- Black Holes are where God is dividing by zero ---

Rex Fowler <rmfowler%texrex at>
UUCP:  egsner!texrex!rmfowler

More information about the Comp.sys.3b1 mailing list