unsetenv TERMCAP in a csh
Juergen Wagner
gandalf at csli.STANFORD.EDU
Fri May 6 13:39:47 AEST 1988
Instead of writing three-line csh scripts of the form
#! /bin/csh
unsetenv TERMCAP
set term = foo
you could use something like
alias foo "unsetenv TERMCAP; set term = foo"
Yet, even better:
alias term "unsetenv TERMCAP; set term = \!* ; tset"
which will work for
term vt100
term tvi950
term h19
term foo
term bar
(you can guess how it continues). In fact, you can use any terminal
type in /etc/termcap (Great, isn't it?).
Aliases work much better because they are executed in the current
environment, whereas scripts are run in a new shell. ...and there is
no way to change the parent's environment just bu calling a script.
--
Juergen "Gandalf" Wagner, gandalf at csli.stanford.edu
Center for the Study of Language and Information (CSLI), Stanford CA
More information about the Comp.unix.questions
mailing list