Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-Id: <4.3.1.2.20021012225900.0261ff88@pop.rcn.com> X-Sender: lhall AT pop DOT rcn DOT com Date: Sat, 12 Oct 2002 23:04:09 -0400 To: David Ryan , cygwin AT cygwin DOT com From: "Larry Hall (RFK Partners, Inc)" Subject: Re: export problem. In-Reply-To: <3DA8D880.1060700@hotmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" At 10:20 PM 10/12/2002, David Ryan wrote: >I have very simple script that all it needs to do is export some environment variables. I can't seem to get it to work. All it does is.. > >export PS2DEV=/usr/ps2dev > >If I do this on the command line it works fine.. and if I place it in /etc/profile it works also. I assume whats happenning is its starting a shell.. setting the environment variable and then closing the shell. How do I write a script that modifies the current environment? > >If I can get the one line working I'll be expanding it, so doing it on the command line everytime is not an option. > >I have the cygwin 1.3.12-4 installed. I also tried going back to 1.3.10-1 to see if it was a bug. I'm hoping theres something small I'm missing. This isn't a Cygwin specific issue. Nevertheless, the same question was asked and answered on this list within the last few weeks. If you're interested in details, check the email archives. Better yet, check out some documentation on shell programming and the "source" keyword. Larry Hall lhall AT rfk DOT com RFK Partners, Inc. http://www.rfk.com 838 Washington Street (508) 893-9779 - RFK Office Holliston, MA 01746 (508) 893-9889 - FAX -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/