Subject: Re: How to bind keys in .kshrc
To: None <>
From: Julien Gabel <>
List: netbsd-users
Date: 09/30/2003 19:50:00
> The manpage for ksh(1) doesn't even mention $HOME/.kshrc. Isn't that
> a bug? If I used ksh, I'd like to know whether it's used for any shell
> or only a login shell and whether it's processed before or after
> $HOME/.profile etc.

${HOME}/.kshrc is normally sourced if the ${ENV} variable is exported, for
example in the ${HOME}/.profile :

  ENV=${HOME}/.kshrc ; export ENV

This environmental script is read (sourced) each time a new sub-Korn Shell
process is launched : the login process is one of them. ${HOME}/.kshrc is
sourced *after* the ${HOME}/.profile in the login phase.