Environment variables in bash don't get set from scripts
Dixon, Scott
scottdi@amazon.com
Tue Jan 15 05:11:00 GMT 2008
Huh; the 'startxwin.bat' script uses "SET":
@echo off
SET DISPLAY=127.0.0.1:0.0
Which formally worked but now doesn't. I have to manually set DISPLAY after running the startxwin.bat script. Furthermore when I run ssh-agent.exe it is unable to set SSH_AUTH_SOCKET and SSH_AGENT_PID.
-----Original Message-----
From: Eric Blake [mailto:ebb9@byu.net]
Sent: January 14, 2008 18:09
To: cygwin@cygwin.com; Dixon, Scott
Subject: 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/
More information about the Cygwin
mailing list