Environment variables in bash don't get set from scripts
Andry
andry@inbox.ru
Tue Jan 15 14:33:00 GMT 2008
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/
More information about the Cygwin
mailing list