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: "Dixon, Scott" <scottdi at amazon dot com>
- To: Eric Blake <ebb9 at byu dot net>, "cygwin at cygwin dot com" <cygwin at cygwin dot com>
- Date: Mon, 14 Jan 2008 18:23:36 -0800
- Subject: RE: Environment variables in bash don't get set from scripts
- Accept-language: en-US
- Acceptlanguage: en-US
- References: <D3EE4659D1E8F24EA751D774E2236210E27B6C86@EX-SEA5-C.ant.amazon.com> <478C15B7.1090700@byu.net>
- Reply-to: "scottd dot archxs at gmail dot com" <scottd dot archxs at gmail dot com>
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/