aboutsummaryrefslogtreecommitdiff
path: root/sh/profile.d/env.sh
blob: ba8e7f49fbc4cd5f4cf2f8dae2f60718f4385ab1 (plain) (blame)
1
2
3
4
5
6
7
8
# If we're running some kind of ksh, export ENV to find ~/.kshrc. Bash differs
# considerably from this behaviour; it uses ENV as its startup file when it's
# invoked as sh(1), and uses .bashrc or --rcfile as its interactive startup
# file, so it doesn't need to be specified here.
if [ -n "$KSH_VERSION" ] ; then
    ENV=$HOME/.kshrc
    export ENV
fi