: : : : A friend has observed the following behavior in his (AIX) .profile:
: : : : ENV=$HOME/.kshrc export ENV
: : : : does not make ENV ($PATH) "stick" until after .profile completes.
: : : : The problem: he invokes a user-menu from .profile (to preserve the
: : : : requisite "canned" user environment), and this menu depends upon some
: : : : of the (not yet set) ENV values. Our VMS intuition suggests that the
: : : : global values should be set regardless of whether .profile has exited,
: : : : but this is obviously not the case.
: : : : Is there a simple way to circumvent this problem?
: : : As you use ENV, you use ksh and so, try this single command.
: : : export ENV=$HOME/.kshrc
: : : E.G.
: : You're missing the point - he's running a menu from a .profile and
: : needs the kshrc stuff there. ENV won't be sourced until .profile
: : terminates.
: I think your missing the point. Move the menu to the end of your .kshrc
: file. Then all the setups in .kshrc can happen before the menu is
: invoked.
: Of course this falls apart if your expecting to set some variables to
: change the behavior of the .kshrc file. But then if you need some of
: the .kshrc stuff to make these changes your in a catch 22 predicament
: anyway. :)
The ENV file gets invoked anytime a shell is invoked, i.e. all shell
scripts. Might be dicey programming around that.
: : --
: : Dan Mercer ClearSystems, Inc
: : ======================================================================
: : All opinions expressed are my own and do not reflect the opinions of
: : my employer or my employer's clients, in particular 3M Company.
: : All advice or software offered or presented is provided As Is with no
: : warranty either expressed or implied. Follow at your own risk.
: : Objects in the mirror are closer than they appear.
: Larry
: --
: ______ _____________________________________________________________
: ____ / ____________ Larry Gardner - IT Engineering Consultant __
: ___ / ________ ISST - CCG Workstation COE Group __
: _ __ / __ / ___ US Mail: 20 Perimeter Summit Boulevard NE __
: __ / / / / __ Atlanta, GA 30319-1417 __
: ____ _/ _/ ____/ __ Comments are mine alone and not those of __
: ______ / ___ of my employer. __
: ____________ _/ ______________________________________________________
--
Dan Mercer ClearSystems, Inc
======================================================================
All opinions expressed are my own and do not reflect the opinions of
my employer or my employer's clients, in particular 3M Company.
All advice or software offered or presented is provided As Is with no
warranty either expressed or implied. Follow at your own risk.
Objects in the mirror are closer than they appear.