From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21723 invoked by alias); 14 Dec 2012 10:55:25 -0000 Received: (qmail 21712 invoked by uid 22791); 14 Dec 2012 10:55:24 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from mel.act-europe.fr (HELO mel.act-europe.fr) (194.98.77.210) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 14 Dec 2012 10:55:18 +0000 Received: from localhost (localhost [127.0.0.1]) by filtered-smtp.eu.adacore.com (Postfix) with ESMTP id 2A8C629002C; Fri, 14 Dec 2012 11:55:23 +0100 (CET) Received: from mel.act-europe.fr ([127.0.0.1]) by localhost (smtp.eu.adacore.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id GYnfa-Lf5lCa; Fri, 14 Dec 2012 11:55:23 +0100 (CET) Received: from chelles.act-europe.fr (chelles.act-europe.fr [10.10.0.160]) by mel.act-europe.fr (Postfix) with ESMTP id 12A0929002B; Fri, 14 Dec 2012 11:55:23 +0100 (CET) Received: by chelles.act-europe.fr (Postfix, from userid 560) id 114971EA005A; Fri, 14 Dec 2012 11:55:23 +0100 (CET) Date: Fri, 14 Dec 2012 10:55:00 -0000 From: Jerome Guitton To: Pierre Muller Cc: 'Pedro Alves' , gdb-patches@sourceware.org Subject: Re: [RFA/mingw32] environment variables are case-insensitive on win32 Message-ID: <20121214105523.GI17188@adacore.com> References: <20121210105115.GB15147@adacore.com> <20121210110128.GA12570@calimero.vinschen.de> <20121210134935.GL31477@adacore.com> <20121210152408.GB11967@calimero.vinschen.de> <20121210154231.GC17188@adacore.com> <20121210155752.GA16027@calimero.vinschen.de> <50C74268.7090209@redhat.com> <20121211144043.GA19874@calimero.vinschen.de> <50C74C0F.7040607@redhat.com> <000301cdd7b3$76052960$620f7c20$@muller@ics-cnrs.unistra.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <000301cdd7b3$76052960$620f7c20$@muller@ics-cnrs.unistra.fr> User-Agent: Mutt/1.5.21 (2010-09-15) Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2012-12/txt/msg00489.txt.bz2 Pierre Muller (pierre.muller@ics-cnrs.unistra.fr): > Coming back to the mingw32 case, > currently you can perfectly pass both Path and PATH environment variables to debuggee. > If this debuggee is cmd.exe, the funny thing is that it will use > the value of Path rather than that of PATH .... Even worse: 'set' would list the two variables, but if you do 'echo %PATH%' or 'echo %Path%' you'll get the same value (the first one in the list of environment variables, apparently): c:\home\guitton\GIT\GDB\builds> set [...] PATH=C:\cygwin\bin Path=C:\windows\system32 [...] c:\home\guitton\GIT\GDB\builds> echo %PATH% C:\cygwin\bin c:\home\guitton\GIT\GDB\builds> echo %Path% C:\cygwin\bin My feeling is that all sort of strange things can happen if we do not assume case-insensitivity in the context of mingw32, so we'd better stick to it. What do you think?