Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!elroy.jpl.nasa.gov!lll-winken!cert!netnews.upenn.edu!vax1.cc.lehigh.edu!lubkt From: lubkt@vax1.cc.lehigh.edu Newsgroups: comp.unix.shell Subject: A simple C-shell query. Message-ID: <69.2743f726@vax1.cc.lehigh.edu> Date: 16 Nov 90 19:26:46 GMT Organization: Lehigh University Lines: 25 Here is a C-shell query: Assuming I want to modify or define few environment variables in csh. I create a script file and run that file. Unfortunately, when I run a file, it spawns a shell, and when it completes execution, it terminates the spawned shell. As a result, modification of all environment variables disappears when the shell terminated. Is there any way to do this without using the "source" command, to modify/define environment variables that apply to the present shell. You might get an idea, if I tell you its application. I have TeX compiled under SunOS. I do not to define all the environment variables (variables set using setenv) for all users, only those who want to use tex, by enter, say, "use tex", where "use" is a C-shell script which takes "tex" as its parameter. Having a general script like this will permit "use" to be as generic as possible. Any pointers? I'll appreciate it. Thanks in advance. /b. -------------------- Binod Taterway LUBKT@vax1.CC.Lehigh.EDU User Consultant LUBKT@spectrum.CC.Lehigh.EDU Lehigh University, Beth, PA. (215) 758-3984.