[Top][All Lists]

[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 <address@hidden>,
Christopher Michael Collins ( <address@hidden> 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 = 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).

Neil Hoggarth                                 Departmental Computer Officer
<address@hidden>                   Laboratory of Physiology
http://www.physiol.ox.ac.uk/~njh/                  University of Oxford, UK

reply via email to

[Prev in Thread] Current Thread [Next in Thread]