This is the mail archive of the
cygwin@sources.redhat.com
mailing list for the Cygwin project.
Re: help with exporting variables
- To: malcolmg at gammacomputer dot com
- Subject: Re: help with exporting variables
- From: Bob McGowan <rmcgowan at veritas dot com>
- Date: Mon, 21 Aug 2000 18:57:18 -0700
- CC: cygwin at sourceware dot cygnus dot com
- Organization: VERITAS Software
- References: <200008211602.AA118293144@gammacomputer.com>
Malcolm Garland wrote:
>
> Hi,
> I'm Malcolm. I've created a series of bourne shell scripts which set a series of environment > variables. Using bash, we are attempting to export/use these scripts on NT. When we run a > single line: "bash 'script-name', the variables are set locally, but the NT "global" environment > variables are not modified. When execute the exact scripts, AFTER entering the bash environment > (i.e., level with the bash prompt versus the DOS prompt) the environment variables are set > globally. How can we alter the NT global environment variables using a single line command > directive such as,
> $ bash "script-name" Options?
Maybe?
bash -c "source script-name"
You may want to pose this question to one of the bash related news
groups, too.
--
Bob McGowan
Staff Software Quality Engineer
VERITAS Software
rmcgowan@veritas.com
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com