Error while login into the server

Hello,

Whenever i login into one of my solaris machine i get below message,

Usage:  basename [ path [ suffix-pattern ] ]
if: Expression syntax

Profile or environment of my user is not properly getting loaded.

Can somebody help why this is coming and solution to it?

What are the contents of your .profile (if using the korn shell), or .bashrc\.bash_profile (if using the bash shell)?