delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-Spam-Check-By: | sourceware.org |
X-IronPort-AV: | E=Sophos;i="4.24,284,1196640000"; d="scan'208";a="246737773" |
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 |
Message-ID: | <D3EE4659D1E8F24EA751D774E2236210E27F1CD4@EX-SEA5-C.ant.amazon.com> |
References: | <D3EE4659D1E8F24EA751D774E2236210E27B6C86 AT EX-SEA5-C DOT ant DOT amazon DOT com> <478C15B7 DOT 1090700 AT byu DOT net> |
In-Reply-To: | <478C15B7.1090700@byu.net> |
Reply-To: | "scottd DOT archxs AT gmail DOT com" <scottd DOT archxs AT gmail DOT com> |
Accept-Language: | en-US |
acceptlanguage: | en-US |
MIME-Version: | 1.0 |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
X-MIME-Autoconverted: | from quoted-printable to 8bit by delorie.com id m0F2Pfrl024536 |
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 AT byu DOT net] Sent: January 14, 2008 18:09 To: cygwin AT cygwin DOT 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 AT byu DOT 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |