On Tue, Apr 24, 2001 at 11:30:53PM +0800, Greg Hosler wrote:
>
> On 24-Apr-01 Craig wrote:
> > Hi all,
> >
> > Simple question, but one I can't find the answer to.
> >
> > How do you set an Enviromental Variable in bash?
>
> export variable_name="value"
That's the bash extension mechanism. There are also the two
(semantically equivelant) original Bourne Shell mechanisms that
Bash will prefer to see if it's running in "sh compatability
mode":
variable_name="foo" export variable_name
and
variable_name="foo"
export variable_name
--
Andrew
--
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://slug.org.au/lists/listinfo/slug