# sourced from /etc/ profile or bashrc #$ I="$HOME/.profile" #$ [ -r "$I" ] && . "$I" case $- in *i*) :;; *) return;; esac case :$PATH: in *:/opt/rypp/bin:*) :;; *) [ -d /opt/rypp/bin ] && PATH=${PATH:+$PATH:}/opt/rypp/bin esac if_x() { for i in $(echo "$PATH" |sed 's/:/ /g'); do [ -x "$i/$1" ] &&SHELL="$i/$1" exec "$i/$1"; done unset i } [ "$(id -u)" -ne 0 ] && if_x mksh unset -f if_x