ksh bugs

Tom Neff tneff at bfmny0.UUCP
Mon Aug 21 16:12:16 AEST 1989


In article <1035 at virtech.UUCP> cpcahil at virtech.UUCP (Conor P. Cahill) writes:
[why KSH can fork slower]
>Another reason may be that you use the "ENV" mechanism of causing sub-shells
>to read and process the .profile equivalent named in the ENV environment
>variable.

This is usually the cause.  A workaround suggested in K&B or the AT&T man
page, I forget which, is this line (taken from my .profile):

	export Envfile=$HOME/.env
	export ENV='${Envfile[(_$-=1)+(_=0)-(_$-!=_${-%%*i*})]}'

This has the effect of nulling $ENV unless your copy of ksh was invoked
interactively -- so shelldowns and such run much faster.
-- 
"We walked on the moon --	((	Tom Neff
	you be polite"		 )) 	tneff at bfmny0.UU.NET



More information about the Comp.bugs.sys5 mailing list