From: beverly AT datacube DOT com (Beverly Brown) Subject: Re: Perl script to set up bash environment. 13 Dec 1996 08:07:04 -0800 Sender: daemon AT cygnus DOT com Approved: cygnus DOT gnu-win32 AT cygnus DOT com Distribution: cygnus Message-ID: <3.0.32.19961213102949.0094cb10.cygnus.gnu-win32@lenny> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Sender: beverly AT lenny X-Mailer: Windows Eudora Pro Version 3.0 (32) Original-To: gnu-win32 AT cygnus DOT com Original-Sender: owner-gnu-win32 AT cygnus DOT com At 02:43 PM 12/9/96 +0000, you wrote: >I have written a perl script for the win32 version of perl that >converts envinronment variables over to unix type variables for bash, >then resets the variables after leaving bash. I should have posted >this a while ago, but richardd AT cix DOT compulink DOT co DOT uk got my butt moving >with his post. I call it "shell.bat" and here is how it goes: > [long script snipped] Just to let you know, Perl has a predefined associative array with all the environment variables already in it. For example, you could use $ENV{"COMSPEC"} to retrieve the value of your COMSPEC environment variable. -- Beverly Brown beverly AT datacube DOT com Datacube Inc. http://www.datacube.com 300 Rosewood Drive Phone:(508)777-4200 x3092 Danvers, MA 01923-4505 Fax: (508)750-0938 - For help on using this list, send a message to "gnu-win32-request AT cygnus DOT com" with one line of text: "help".