Is this normal with RedHat Linux?
Hi there,
We are in the process of changing from HP-UX to RedHat Enterprise Linux. All our scripts were written for ksh but now we are going to be running in bash shell.
I have converted most of the scripts. In the process I have noticed that the 'env' command does not return what I expected. Normally, this command lists the environment variables but in my instance it returns the functions and closing braces '}'.
Any idea what I might need to do to correct this?
Thanks.
Example:
VISUAL=vi
WHOAMI=peterpan
WHOAMI_CMD=/usr/bin/whoami
_=/usr/bin/env
chdb=() { trace_msg $DBA_TRACE_LEVEL_MIN "chdb: Entry parms are '$*'";
chenv=() { trace_msg $DBA_TRACE_LEVEL_MIN "chenv: Entry parms are '$*'";
chpath=() { if [ $# -lt 3 ]; then
co=() { T=$PWD;
columns=112
com=() { cvs commit $*
dus=() { if [ "$1" = "-k" ]; then
envg=() { /usr/bin/env | sort | sort | grep "$*" | $DBA_MORE;
get_ora_parm=() { TOOL="" && export TOOL;
get_sqlvars=() { if [ -z "$1" ]; then
kdf=() { case "$SYSTEM" in
killpl=() { SIG=$1;
ll=() { ls --color=tty -lF $* | $DBA_MORE
lla=() { ls --color=tty -lFa $* | $DBA_MORE
lp=() { pr -l 64 $* | sed -e 's/ / /g' -e '1,2d' | /usr/bin/lp -d ${LPDEST:-dba};
map :%s: : :g
map :'a,'bs: : :g
outofdate=() { cvs stat . | grep Status | grep -v 'Up-to-date' | $DBA_MORE
plg=() { ( ps -ef | head -1 && ps -ef | grep "$*" | grep -v grep ) | $DBA_MORE
plu=() { ps -fu `$WHOAMI_CMD` | grep -v grep;
plw=() { if [ $# -ne 1 ]; then
rel=() { cvs release -d $*
rows=33
runall=() { PLAT=$1;
shdb=() { case "$RDBMS" in
shenv=() { echo "Current: Env=$WQ_ENV Sub-system=$WQ_SUB APP_HOME=$APP_HOME";
top=() { case "$SYSTEM" in
trace_msg=() { return 0
upd=() { cvs update $*
validate_sub_env=() { VALID_ENVS=$CMS_NONCM_CFG/${WQ_SUB}.valid_envs.cfg;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
|