In article <9135k3$k55$1@cscnews.csc.calpoly.edu>,
Christopher Michael Collins ( <cmcollin@monet.artisan.calpoly.edu> wrote:
> I was given a script to set environment variable to
> then run an application. It contains the c-shell
> variable setenv and unsetenv.
>
> Are there bash equivalents?
VARIABLE = value
export VARIABLE
or
export VARIABLE = value
(the former syntax should work with all similar shells, so if your
script needs to be portable to /bin/sh on a range of systems you
should stick with that - if the script can be Bash specific then you
can use the latter shortcut).
Regards,
--
Neil Hoggarth Departmental Computer Officer
<neil.hoggarth@physiol.ox.ac.uk> Laboratory of Physiology
http://www.physiol.ox.ac.uk/~njh/ University of Oxford, UK