This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Environment variables in bash don't get set from scripts


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]