From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21665 invoked by alias); 18 Jun 2004 20:00:40 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 21647 invoked from network); 18 Jun 2004 20:00:39 -0000 Received: from unknown (HELO nevyn.them.org) (66.93.172.17) by sourceware.org with SMTP; 18 Jun 2004 20:00:39 -0000 Received: from drow by nevyn.them.org with local (Exim 4.34 #1 (Debian)) id 1BbPXQ-0007kT-Rx; Fri, 18 Jun 2004 16:00:36 -0400 Date: Fri, 18 Jun 2004 20:00:00 -0000 From: Daniel Jacobowitz To: Andrew Cagney Cc: Michael Elizabeth Chastain , jimb@redhat.com, gdb-patches@sources.redhat.com, Keith Seitz Subject: Re: RFA: patch to fix gdb/1680 Message-ID: <20040618200036.GA29729@nevyn.them.org> Mail-Followup-To: Andrew Cagney , Michael Elizabeth Chastain , jimb@redhat.com, gdb-patches@sources.redhat.com, Keith Seitz References: <20040618191836.629204B104@berman.michael-chastain.com> <20040618194250.GA28102@nevyn.them.org> <40D348FA.2070009@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <40D348FA.2070009@gnu.org> User-Agent: Mutt/1.5.5.1+cvs20040105i X-SW-Source: 2004-06/txt/msg00444.txt.bz2 On Fri, Jun 18, 2004 at 03:56:42PM -0400, Andrew Cagney wrote: > >>Try "{}" instead of {""}. In these sorts of situtations that works a > >>>lot better. > > > > > >which is the missing bit of my suggestion. { and \{ are the same thing > >when written in double quotes. So (since we can't use {} here, because > >there is a variable substitution inside gdb_test's argument), use two > >backslashes. That way one will reach the regex engine. > > (two many quote characters). Use ``{ ... }'' instead of ``" ... "'' > when wrapping things up, it avoids the entire quoting et.al. problem. I wrote: > >when written in double quotes. So (since we can't use {} here, because > >there is a variable substitution inside gdb_test's argument), use two If we use { }, the $r will not be expanded, and the test will not work. We can't use { } for this. -- Daniel Jacobowitz