From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29584 invoked by alias); 22 Apr 2010 12:26:01 -0000 Received: (qmail 29437 invoked by uid 22791); 22 Apr 2010 12:25:58 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=BAYES_00 X-Spam-Check-By: sourceware.org Received: from rock.gnat.com (HELO rock.gnat.com) (205.232.38.15) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 22 Apr 2010 12:25:53 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id 127252BACE7; Thu, 22 Apr 2010 08:25:51 -0400 (EDT) Received: from rock.gnat.com ([127.0.0.1]) by localhost (rock.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 4J-lGz6+UIUz; Thu, 22 Apr 2010 08:25:51 -0400 (EDT) Received: from joel.gnat.com (localhost.localdomain [127.0.0.1]) by rock.gnat.com (Postfix) with ESMTP id E95DC2BACE5; Thu, 22 Apr 2010 08:25:50 -0400 (EDT) Received: by joel.gnat.com (Postfix, from userid 1000) id 82D42F5895; Thu, 22 Apr 2010 05:25:50 -0700 (PDT) Date: Thu, 22 Apr 2010 12:26:00 -0000 From: Joel Brobecker To: Pierre Muller Cc: gcc-patches@gcc.gnu.org, gdb-patches@sourceware.org Subject: Re: [RFC] Do not treat '\' as escape character on MinGW Windows hosts Message-ID: <20100422122550.GJ19194@adacore.com> References: <20100421203354.GD6588@adacore.com> <20100421220828.GA19620@ednor.casa.cgf.cx> <20100422001714.GD19194@adacore.com> <20100422023421.GA20111@ednor.casa.cgf.cx> <20100422103718.GG19194@adacore.com> <20100422115139.GH19194@adacore.com> <001601cae213$80998080$81cc8180$@muller@ics-cnrs.unistra.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <001601cae213$80998080$81cc8180$@muller@ics-cnrs.unistra.fr> User-Agent: Mutt/1.5.20 (2009-06-14) 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: 2010-04/txt/msg00746.txt.bz2 > Should we rather think about a command > that would allow to switch from Unix to Windows behavior? > > set windows-escape-mode on/auto/off Absolutely, *if* we decide that the right behavior is: preserve the current Unixy behavior everywhere except inside the GDB interpreter. > Of course this is only valid for GDB, I don't know > how this could be handled within GCC. GCC already accepts both forms, I suspect. However, the shell from which you are calling GCC might not. For instance, if you use a cygwin bash to call GCC, then you cannot use c:\foo.c unless you either escape the backslashes, or you quote your argument. But if you do it from the CMD.exe shell, then it should work just fine. -- Joel