LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-11-2008, 11:01 AM   #1
kcarmi01
LQ Newbie
 
Registered: Mar 2008
Posts: 4

Rep: Reputation: 0
RHEL5 braceexpand in KSH not working the same as RHEL4 HELP!


On my RHEL4 system i was able to write a KSH script and set enviornment varibales by doing the following:
set +o braceexpand (turns off braces)
CLUSTER_NODES='{"usplselux140","usplselux141"}'
echo $CLUSTER_NODES
{"usplselux140","usplselux141"}
variable is set as wanted and looks like above echo output! I require the enviroment variable to be exactly like the output.

Now i have moved on to Linux 5 and doing the same thing i get the wrong output with braceexpand turned off as in RHEL4.

set +B braceexpand
set -o
Current option settings
braceexpand off
set +o seems to the do the same and turns off braceexpand
but the output of the same above is different.

Output: ksh shell environment settings

CLUSTER_NODES='{"usplselux140","usplselux141"}'
echo $CLUSTER_NODES
"usplselux140" "usplselux141"

It has stripped the brackets and pulled the comma seperator as well. no matter what i do to braceexpand it doesn't come out like i need and it did in RHEL4.

We are running RHEL AS x86_64 OS versions for 4 and 5.

You help is appreciated.
 
  


Reply

Tags
rhel51



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
RHEL4 vs RHEL5 new database servers dfezz1 Linux - Enterprise 1 03-05-2008 11:08 AM
Help: rhel4->rhel5==>Matlab consumes more memory pronuncer Linux - Kernel 4 01-18-2008 05:40 PM
Differences of DNS on RHEL4 & RHEL5 shinoj Linux - Newbie 2 01-06-2008 09:25 AM
how to uninstall rhel4 &rhel5 O/S jagadeesh.nagireddy Linux - Enterprise 2 10-17-2007 08:53 PM
Rhel4/ Rhel5 rehan999 Linux - Software 2 08-31-2007 11:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:35 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