[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: setenv & unsetenv
From: |
Neil Hoggarth |
Subject: |
Re: setenv & unsetenv |
Date: |
12 Dec 2000 12:26:24 GMT |
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
- setenv & unsetenv, Christopher Michael Collins (), 2000/12/11
- Re: setenv & unsetenv,
Neil Hoggarth <=