A simple C-shell query.
lubkt at vax1.cc.lehigh.edu
lubkt at vax1.cc.lehigh.edu
Sat Nov 17 06:26:46 AEST 1990
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 at vax1.CC.Lehigh.EDU
User Consultant LUBKT at spectrum.CC.Lehigh.EDU
Lehigh University, Beth, PA.
(215) 758-3984.
More information about the Comp.unix.shell
mailing list