aboutsummaryrefslogtreecommitdiff
path: root/sh/profile.d/env.sh
blob: f1b83919fbc44d887509439545e598fe606f05a0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
# If we're running some kind of ksh, export ENV to find a suitable startup
# file. 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.
case $KSH_VERSION in
    *'PD KSH '*) ENV=$HOME/.pdkshrc ;;
esac
if [ -n "$ENV" ] ; then
    export ENV
fi