Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Korn Shell and the EVAL command

Status
Not open for further replies.

DGRFL

Programmer
Dec 28, 2000
36
BE
Hello,

I have a shell script that processes a Microsoft like PATH environment variable. I want to add some folders to it.

export current=`eval $NTPATH`
export additional=`cat path.lst`
export NTPATH=$current\;$additional
echo $NTPATH

The first statement fails when either a blanc appears in $NTPATH or the combination '\c' or '\b' (like in ...\bin or ...\common)

Does anybody know how I can avoid this special character substitution on the first command ?

Best regards,

Luc
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top