From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21672 invoked by alias); 15 Aug 2011 19:29:13 -0000 Received: (qmail 21662 invoked by uid 22791); 15 Aug 2011 19:29:12 -0000 X-SWARE-Spam-Status: No, hits=-7.4 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,SPF_HELO_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 15 Aug 2011 19:28:57 +0000 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p7FJSrXj027369 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 15 Aug 2011 15:28:53 -0400 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id p7FJSqY3001162; Mon, 15 Aug 2011 15:28:52 -0400 Received: from barimba (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id p7FJSoO6018850; Mon, 15 Aug 2011 15:28:50 -0400 From: Tom Tromey To: Mark Kettenis Cc: pierre.muller@ics-cnrs.unistra.fr, eliz@gnu.org, gdb-patches@sourceware.org Subject: Re: [RFC] Fix problems related to Mingw/DJGPP file names containing colons References: <004901cc5907$85006320$8f012960$%muller@ics-cnrs.unistra.fr> <83vcu2wnvj.fsf@gnu.org> <83sjp6wmhb.fsf@gnu.org> <003c01cc59a1$49cc1520$dd643f60$%muller@ics-cnrs.unistra.fr> <83ei0pwpol.fsf@gnu.org> <005101cc59f9$7e87a790$7b96f6b0$@muller@ics-cnrs.unistra.fr> <201108132125.p7DLPhb6010148@glazunov.sibelius.xs4all.nl> Date: Mon, 15 Aug 2011 19:29:00 -0000 In-Reply-To: <201108132125.p7DLPhb6010148@glazunov.sibelius.xs4all.nl> (Mark Kettenis's message of "Sat, 13 Aug 2011 23:25:43 +0200 (CEST)") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain 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: 2011-08/txt/msg00311.txt.bz2 >>>>> "Mark" == Mark Kettenis writes: Mark> Perhaps that's the solution here? If you use "quotation" as well as Mark> "escaping" you should be able to express anything you want on a Mark> command line. One funny thing about linespecs is that the quoting syntax isn't actually documented -- at least, I couldn't find it in the manual. I tend to think this gives us some freedom to change it a little, on the theory that probably not many people are already using both quotes and backslashes. That theory may run aground on the unfortunate fact that MI's -break-insert exposes linespecs to the MI clients. I wonder what they do for Windows-style paths right now. I have been contemplating changing linespec to pre-tokenize. Right now if you read linespec.c, code to pull out the next relevant token is spread out all over the file. I think it would simplify and strengthen the implementation if this were done in a single pass up-front. Tom