How can you tell what shell you are running on UNIX system?

How can you tell what shell you are running on UNIX system?

when we can do the Echo RANDOM. Then we got   return a undefined variable.
> If we are from the C-Shell, just we will got return value prompt,
> If we are from the Bourne shell, and in a 5 digit random numbers.
> If we are from the Korn shell. We could also do a ps -l and look for the shell with the highest PID. 

By:Umang
Date:2006-01-09 00:00:00

Post Your Answers


User Email:

User Name:
Answers:

Related C Subjective Links

C Subjective interview questions and answers for experienced and fresher