2009-01-12 18:59:03 +01:00
|
|
|
|
# $RCSfile: shell,v $
|
2009-01-13 14:27:53 +01:00
|
|
|
|
# $Revision: 1.2 $
|
2009-01-12 18:59:03 +01:00
|
|
|
|
# $Name: $
|
2009-01-13 14:27:53 +01:00
|
|
|
|
# $Date: 2009/01/13 13:27:53 $
|
2009-01-12 18:59:03 +01:00
|
|
|
|
# $Author: agibert $
|
|
|
|
|
|
2009-01-13 14:27:53 +01:00
|
|
|
|
# EnvMng Environment configuration
|
|
|
|
|
#
|
|
|
|
|
# description: Shell default configuration
|
|
|
|
|
#-------------------------------------------------------------------------------
|
|
|
|
|
|
2009-01-12 18:59:03 +01:00
|
|
|
|
case $BASH in
|
|
|
|
|
*bash)
|
|
|
|
|
shell=$BASH
|
|
|
|
|
;;
|
|
|
|
|
|
|
|
|
|
*)
|
|
|
|
|
shell=/usr/bin/ksh
|
|
|
|
|
;;
|
|
|
|
|
esac
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
case "$shell"-$1 in
|
|
|
|
|
*ksh-*profile)
|
|
|
|
|
export ENV=$envmng_prefix/etc/envmng_rc
|
|
|
|
|
;;
|
|
|
|
|
|
|
|
|
|
*bash-*profile)
|
|
|
|
|
export ENV=$envmng_prefix/etc/envmng_rc
|
|
|
|
|
;;
|
|
|
|
|
|
|
|
|
|
*ksh-*rc)
|
|
|
|
|
alias __A=
|
|
|
|
|
alias __B=
|
|
|
|
|
alias __C=
|
|
|
|
|
alias __D=
|
|
|
|
|
;;
|
|
|
|
|
|
|
|
|
|
*bash-*rc)
|
|
|
|
|
;;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
*)
|
|
|
|
|
echo "$0: Invalid command: [$1] !"
|
|
|
|
|
;;
|
|
|
|
|
esac
|