On Thu, 2007-05-24 at 16:15 +0000, Dennis Lee Bieber wrote: > On Thu, 24 May 2007 09:07:07 -0500, Carl K <[EMAIL PROTECTED]> > declaimed the following in comp.lang.python: > > > Getting closer, thanks Bill and Diez. > > > > $ export ORACLE_HOME > > $ ORACLE_HOME=/usr/lib/oracle/xe/app/oracle/product/10.2.0/client > > Don't those lines need to be reversed? Set the variable in the > current shell, and /then/ export it?
It also works the other way around, at least on the non-empty set of systems that contains my workstation. export simply marks the variable name for automatic export to the environment of subsequent commands. The value at that time doesn't matter. What matters is the value that the name has at the time the command is run: [EMAIL PROTECTED] ~]$ export FOOD [EMAIL PROTECTED] ~]$ FOOD=spam [EMAIL PROTECTED] ~]$ python -c "import os; print os.environ['FOOD']" spam [EMAIL PROTECTED] ~]$ FOOD=eggs [EMAIL PROTECTED] ~]$ python -c "import os; print os.environ['FOOD']" eggs Regards, -- Carsten Haese http://informixdb.sourceforge.net -- http://mail.python.org/mailman/listinfo/python-list