views:

24

answers:

1

How do I see the current version of tcsh is running in my unix terminal?

+2  A: 

Look at the version variable:

% echo $version 
tcsh 6.14.00 (Astron) 2005-03-25 (i386-intel-linux) options wide,nls,dl,al,kan,sm,rh,color,filec
Blrfl
This was the first thing I tried before researching and posting the question. Why doesn't it work? (I would get the same result if I typed this in bash.)env | grep -i verTERM_PROGRAM_VERSION=273
noneme
What you're looking for is a shell variable, which you won't find in the environment. BASH has its own equivalent called BASH_VERSION. Either can be substituted on the command line or found using the `set` built-in. TERM_PROGRAM_VERSION is added to the environment by Apple's terminal program and has nothing to do with the shell you're running.
Blrfl