awk on Solaris

Hi,

we have a shell script like this ..

# make sure all parameters are dealt with in upper case.
for option in ${1} ${2} ${3} ${4} ${5} ${6} ${7} ${8} ${9}
do
option_name=`echo ${option} | awk -F \= '{print $1}'`
if [ "${option_name}" == "SID" ]
then
SID=`echo ${option} | awk -F \= '{print $2}'`
else
typeset -u option
eval ${option}
fi
done

it's working fine on AIX and it's failing on "option_name=`echo ${option} | awk -F \= '{print $1}'`" on Solaris . Syntax looks oky for me . And it's not giving exact error too .

do you see any thing different for Soalris 10 ( awk part)

Thanks

Your line:

awk -F \= '{print $1}'

has a space between the "-F" and the "\=" which will cause it to fail in Solaris, also I would have written that as follows:

awk -F"=" '{print $1}'

ThankYou . I will give it a try !!!