X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org Date: Tue, 15 Jan 2008 16:34:18 +0300 From: Andry X-Mailer: The Bat! (v3.0.1.33) Professional Reply-To: Andry Message-ID: <1372032253.20080115163418@inbox.ru> To: cygwin AT cygwin DOT com Subject: Re: Environment variables in bash don't get set from scripts MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: 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 Hello cygwin, >I'm using cygwin on XP Pro and was having no issues untill I updated some dev pacakages the other day. Now none of my shell scripts are able to SET environment variables for a session. I can "export foo=something" but my scripts can't "SET foo something". Any -deas? Thanks >-scott You can use printf for this purpose in bash environment: #### printf -v CPATH `cygpath -u -p $CPATH` # Update CPATH for gcc/g++ printf -v LIBRARY_PATH `cygpath -u -p $LIBRARY_PATH` # Update LIBRARY_PATH for gcc/g++ #### -- Best regards, Andry mailto:andry AT inbox DOT ru -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/