From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6227 invoked by alias); 20 Nov 2002 17:28:59 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 6215 invoked from network); 20 Nov 2002 17:28:55 -0000 Received: from unknown (HELO ns.aus.com) (66.127.241.71) by sources.redhat.com with SMTP; 20 Nov 2002 17:28:55 -0000 Received: from localhost (rsharpe@localhost) by ns.aus.com (8.11.6/8.11.6) with ESMTP id gAKHqrI04402; Thu, 21 Nov 2002 04:22:53 +1030 Date: Wed, 20 Nov 2002 09:28:00 -0000 From: Richard Sharpe To: Daniel Jacobowitz cc: Andrew Cagney , Subject: Re: Processing of convenience variables for scripts ... In-Reply-To: <20021120163549.GA14036@nevyn.them.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-SW-Source: 2002-11/txt/msg00268.txt.bz2 On Wed, 20 Nov 2002, Daniel Jacobowitz wrote: > On Wed, Nov 20, 2002 at 11:32:24AM -0500, Andrew Cagney wrote: > > >The loop works, but add-symbol-file seems to be called without the > > >>convenience variables being expanded. > > >> > > >>Have it got that right? > > >> > > >>If so, what would be the first step to get them expanded? > > > > > > > > >add-symbol-file takes constants, not expressions - so variables are not > > >expanded. This should probably change but it's not clear how, given > > >the parser... > > > > A quick/dirty hack would be: > > > > eval ..... > > > > similar to the SH equivalent. I suspect an eval will be needed anyway. > > Honestly, I'd rather define the CLI grammar I've been talking about > than add any more quick hacks. That's a good 6.0 thing to do, clean up > our CLI a little... I have a short-term need and a long-term need. I am willing to expend effort on both. Where is the description of this grammar? Regards ----- Richard Sharpe, rsharpe[at]ns.aus.com, rsharpe[at]samba.org, sharpe[at]ethereal.com, http://www.richardsharpe.com