[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

suppressing "TERM: Undefined variable" in csh



The Solaris boxes at school default to /bin/csh as the shell, and this
can't be changed.  In my .cshrc I have lines like

if ( "$TERM" == "linux" ) then
    setenv TERM vt100
    exec bash
endif

if ( "$TERM" == "PuTTY" ) then
    setenv TERM xterm
    exec bash
endif

(yeah, they have crappy termcap/terminfo dbs too, no such thing as
"linux" or anything with color)

This works great, except when I use scp or invoke formail from
.procmailrc I get the message "TERM: Undefined variable".  I'd rather
not get this.  I know that POSIX shells don't whine like that, but how
can I make csh stop?

-D

-- 

Failure is not an option.  It is bundled with the software.



Reply to: