LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 07-04-2007, 12:49 AM   #1
ozvikings
LQ Newbie
 
Registered: Jul 2007
Posts: 1

Rep: Reputation: 0
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;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
 
Old 07-04-2007, 02:16 AM   #2
b0uncer
LQ Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
If the scripts were written for ksh, why not just use ksh on RHEL as well, at least on the user accounts or jobs where it's needed? A lot easier, if you ask me, than converting them all to bash..
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't long into linux as a normal user, help! m0rt3r Linux - Software 13 07-06-2006 09:23 AM
'Normal' vi different from 'Redhat' vi Worstje Linux - Newbie 6 03-24-2004 08:15 AM
Using linux like a normal telephone? Optimized Linux - Software 0 11-03-2003 05:18 PM
RedHat 9 memory usage: is this normal? Bjornkri Linux - Newbie 2 06-03-2003 03:49 AM
Redhat 7.1 normal or not? NewbTech Linux - Software 3 09-27-2001 02:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 04:06 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration