This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Environment variables in bash don't get set from scripts
- From: Andry <andry at inbox dot ru>
- To: cygwin at cygwin dot com
- Date: Tue, 15 Jan 2008 16:34:18 +0300
- Subject: Re: Environment variables in bash don't get set from scripts
- Reply-to: Andry <andry at inbox dot ru>
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@inbox.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/