Path: utzoo!mnetor!uunet!lll-winken!lll-tis!ames!pasteur!ucbvax!hplabs!decwrl!labrea!csli!gandalf From: gandalf@csli.STANFORD.EDU (Juergen Wagner) Newsgroups: comp.unix.questions Subject: Re: unsetenv TERMCAP in a csh Message-ID: <3780@csli.STANFORD.EDU> Date: 6 May 88 03:39:47 GMT References: <479@cieunix.rpi.edu> Reply-To: gandalf@csli.stanford.edu (Juergen Wagner) Organization: Center for the Study of Language and Information, Stanford U. Lines: 23 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@csli.stanford.edu Center for the Study of Language and Information (CSLI), Stanford CA