delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=1.7 required=5.0 tests=AWL,BAYES_40,SARE_RECV_IP_080040,SPF_HELO_PASS,SPF_PASS |
X-Spam-Check-By: | sourceware.org |
X-Trace: | 261649301/mk-filter-4.mail.uk.tiscali.com/B2C/$b2c-THROTTLED-DYNAMIC/b2c-CUSTOMER-DYNAMIC-IP/80.41.121.89/None/johne53 AT tiscali DOT co DOT uk |
X-SBRS: | None |
X-RemoteIP: | 80.41.121.89 |
X-IP-MAIL-FROM: | johne53 AT tiscali DOT co DOT uk |
X-SMTP-AUTH: | |
X-MUA: | Microsoft Outlook Express 6.00.2900.3138Produced By Microsoft MimeOLE V6.00.2900.3350 |
X-IP-BHB: | Once |
X-IronPort-Anti-Spam-Filtered: | true |
X-IronPort-Anti-Spam-Result: | ApwEABDvuUpQKXlZ/2dsb2JhbACKbM0khBsF |
Message-ID: | <001701ca3c76$ef1a0db0$4001a8c0@mycomputer> |
From: | "John Emmas" <johne53 AT tiscali DOT co DOT uk> |
To: | <cygwin AT cygwin DOT com> |
References: | <005f01ca3c4b$e5385b10$4001a8c0 AT mycomputer> <20090923121735 DOT GA20981 AT calimero DOT vinschen DOT de> <002f01ca3c57$532cd9b0$4001a8c0 AT mycomputer> |
Subject: | Re: Is this a known problem with getenv() ? |
Date: | Wed, 23 Sep 2009 17:54:44 -0000 |
MIME-Version: | 1.0 |
X-IsSubscribed: | yes |
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 |
----- Original Message ----- From: "John Emmas" > > I might just try experimenting with a very simple program and see if I > still get the error > I partially tracked down the problem, although I don't quite know how to solve it. If I write this simple console app:- #include <stdio.h> #include <stdlib.h> int main () { printf ( getenv ("PATH") ); return 0; } it outputs the correct path. However, if I create a GUI app and launch it under 'X', the path seems to change and includes lots of duplicated folders. I figured out that startxwin.bat is adding a few duplicated entries to my path but that doesn't explain why there are so many duplications and I don't know where the others might be coming from. However, I don't get any duplicates at all if I run XWin directly, instead of starting it with startxwin.bat. John -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |