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
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
According to Dixon, Scott on 1/14/2008 4:38 PM:
| 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
[http://cygwin.com/acronyms/#PCYMTWLL]
'SET' is not bash syntax, but cmd.exe (or perhaps you were thinking of
'set' in tcsh). You were correct in using 'export' syntax for a bash script.
- --
Don't work too hard, make some time for fun as well!
Eric Blake ebb9@byu.net
volunteer cygwin bash maintainer
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFHjBW384KuGfSFAYARAgMYAJ9B4v8kmRhj9OPVw6Y3WruNzI0i1gCggfc5
DZMKI07XCHAwVa5zU+Q6JwI=
=ayTu
-----END PGP SIGNATURE-----
--
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/