I didn't get much from the discussion of Command Substitution. Any tips on how to do that?
David On Jul 21, 2005, at 10:12 PM, Dan Sommers wrote: > On Thu, 21 Jul 2005 21:39:01 -0500, > David Durkee <[EMAIL PROTECTED]> wrote: > > > > >> I'm trying to write a script I can run from tcsh in Terminal (on Mac >> OS X) that will set environment variables that can be accessed by >> subsequent commands I execute in that session. Not having any luck so >> far. Here's what I've tried: >> >> > > By design, you can't do that (think of the problems if arbitrary > programs could change your interactive shell's environment behind your > back). > > Processes (your script) cannot change the environment of their parents > (your shell). The best you can do is have your script output the > right > commands and have your shell read them. See "Command Substitution" in > the tcsh man page. > > Regards, > Dan > > -- > Dan Sommers > <http://www.tombstonezero.net/dan/> > -- > http://mail.python.org/mailman/listinfo/python-list > > -- http://mail.python.org/mailman/listinfo/python-list