==
if ( $?tcsh == 0 ) then # ie not set (ie I am csh)
if ( -f /bin/tcsh ) then
exec /bin/tcsh
endif
endif
==
=======
someone suggested consolidating onto tcsh, but the choice is not mine to make.
someone suggested testing to see if its on the console before testing
for tcsh - that didnt work.
someone else suggested testing for DT, but even after uncommenting the
DTSOURCEPROFILE=true in the .dtprofile, it didnt work.
someone else suggested testing for interactive_shell, which was close
to what I ended up doing.
The solution was
# if interactive user and tcsh is not set (ie, I am csh) then exec tcsh
if ( ${?USER} && ${?prompt} && "${?tcsh}" == 0 ) then
if ( -f /bin/tcsh ) then
exec /bin/tcsh
endif
endif
thanks all!
Walter Moore