From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4243 invoked by alias); 15 Dec 2009 01:57:16 -0000 Received: (qmail 4234 invoked by uid 22791); 15 Dec 2009 01:57:15 -0000 X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mail-pw0-f49.google.com (HELO mail-pw0-f49.google.com) (209.85.160.49) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 15 Dec 2009 01:57:12 +0000 Received: by pwj12 with SMTP id 12so2638066pwj.8 for ; Mon, 14 Dec 2009 17:57:11 -0800 (PST) MIME-Version: 1.0 Received: by 10.142.66.19 with SMTP id o19mr3687875wfa.100.1260842231103; Mon, 14 Dec 2009 17:57:11 -0800 (PST) In-Reply-To: References: <20091130190619.GJ4034@adacore.com> <4B1428F0.7090608@vmware.com> <20091211100558.GA7125@adacore.com> From: Hui Zhu Date: Tue, 15 Dec 2009 01:57:00 -0000 Message-ID: Subject: Re: [RFC] Let "gcore" command accept a suffix argument To: Tom Tromey Cc: Joel Brobecker , Michael Snyder , gdb-patches ml Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes 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: 2009-12/txt/msg00187.txt.bz2 Agree with you. Add " with variable make it oddness. What about change it to others, like: eval echo {++$a} Or add " to simple string, like: eval echo ++$a".core" Or eval echo ++$a'.core' Thanks, Hui On Tue, Dec 15, 2009 at 01:09, Tom Tromey wrote: >>>>>> ">" =3D=3D Hui Zhu writes: > >>> I change it to: >>> eval echo "++$a" > > I'm afraid I don't like this approach either. > > I think quoting expressions is very ugly. =A0Nothing else in gdb does > this. =A0Also, AFAIK it breaks completion. =A0Furthermore, this > implementation ignores the possibility of quotes embedded in an > expression. > > Please choose some other approach. > > thanks, > Tom >