[ksh93-integration-discuss] Re: /etc/ksh.kshrc for ksh93 [PSARC/2006/587 Timeout: 10/24/2006]
Henk Langeveld
hlangeveld at mailworks.org
Tue Oct 17 18:29:09 PDT 2006
Roland Mainz wrote:
> Uhm... there is no "fixed" format - /etc/ksh.kshrc is a shell script
> (fragment) which gets sourced before ~/.kshrc ...
Make that 'sourced before $ENV'. Note that ENV has
to be set before the shell is invoked.
ENV If this variable is set, then parameter
expansion, command substitution, and arith-
metic substitution are performed on the
value to generate the pathname of the script
that will be executed when the shell is
invoked (see Invocation below). This file
is typically used for alias and function
definitions. The default value is
$HOME/.kshrc.
I remember a Certification question that asked for the
correct order of /etc/profile, .kshrc, and ~/.profile.
Bad question, no cookie.
If there would be any default, it should use arrow keys.
A beginner wouldn't expect anything more than that.
Regards,
--
Henk Langeveld
20+ years of ksh and vi myself. But that is not part
of this argument.
More information about the ksh93-integration-discuss
mailing list