ENV file in ksh: is this smart? legal?

Doug Gwyn gwyn at smoke.BRL.MIL
Thu Aug 31 11:18:32 AEST 1989


In article <716 at rodan.acs.syr.edu> jdpeek at rodan.acs.syr.edu (Jerry Peek) writes:
>#2.  The next problem I have with ENV files -- if their name is stored
>in the environment (export ENV) -- is that Korn shell script files
>(shell programs) read them too.  I have some stuff in my ENV file that
>screws up shell scripts.

That's a Korn shell design botch.  Apparently DGK thought that the C shell
behavior should be mimicked.  Too bad he didn't first notice what a pain
it already was for C shell users.  When Doug Kingston and I added a
similar feature to the BRL Bourne shell, we were more careful, and I think
ours works right.  It does NOT get sourced for shell scripts (unless they
decide to source the file themselves, which would be exceedingly rare).



More information about the Comp.unix.questions mailing list