Error in setting PATH variable in bash shell

Hi,

I am new to shell scripting.I tried adding an entry to the path variable like below

export PATH=$PATH:/opt/xxx/bin
But am getting an error invalid identifier /opt/xxx/bin

Can someone tell me the error above and correct me .
Thanks and Regards,
Padmini

You're most likely running your script in bsh (Bourne shell), not bash (Bourne-Again shell). This should be more portable:

PATH=$PATH:/opt/xxx/bin; export PATH

HI,
Thanks.It worked.

Regards,
Padmini