From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6251 invoked by alias); 20 Nov 2002 16:32:40 -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 6236 invoked from network); 20 Nov 2002 16:32:29 -0000 Received: from unknown (HELO localhost.redhat.com) (216.138.202.10) by sources.redhat.com with SMTP; 20 Nov 2002 16:32:29 -0000 Received: from redhat.com (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id B89D43E39; Wed, 20 Nov 2002 11:32:24 -0500 (EST) Message-ID: <3DDBB918.6090605@redhat.com> Date: Wed, 20 Nov 2002 08:32:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:1.0.0) Gecko/20020824 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Daniel Jacobowitz Cc: Richard Sharpe , gdb@sources.redhat.com Subject: Re: Processing of convenience variables for scripts ... References: <20021120141310.GA4546@nevyn.them.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2002-11/txt/msg00261.txt.bz2 > 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. Andrew