From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1334 invoked by alias); 6 Dec 2002 22:53:32 -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 1316 invoked from network); 6 Dec 2002 22:53:31 -0000 Received: from unknown (HELO touchme.toronto.redhat.com) (216.138.202.10) by sources.redhat.com with SMTP; 6 Dec 2002 22:53:31 -0000 Received: from redhat.com (totem.toronto.redhat.com [172.16.14.242]) by touchme.toronto.redhat.com (Postfix) with ESMTP id 373C1800331; Fri, 6 Dec 2002 17:53:31 -0500 (EST) Message-ID: <3DF12A6B.1050006@redhat.com> Date: Fri, 06 Dec 2002 14:53:00 -0000 From: Fernando Nasser Organization: Red Hat , Inc. - Toronto User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.1) Gecko/20020827 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Richard Sharpe Cc: Daniel Jacobowitz , gdb@sources.redhat.com Subject: Re: Processing of convenience variables for scripts ... References: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2002-12/txt/msg00140.txt.bz2 Richard Sharpe wrote:> On Fri, 6 Dec 2002, Fernando Nasser wrote: > > >>Daniel Jacobowitz wrote: >> >>>That said, I'm not worried about implementing this as much as I am >>>designing what it "ought" to look like. >>> >> >>For me just: >> >>eval command args... ${something} more args... >> >>where the value of ${something} is blah >> >>causes the following command to be executed >> >>command args... blahh more args... >> >> >>eval just expands the variable to create the real command to be excuted >>and calls execute_command() with it. > > > This sounds like a simple short-term solution while we wait on a more > general method where all commands can take expressions of any type :-) > Why we would want that? Are you thinking of any specific example where this could be useful? -- Fernando Nasser Red Hat - Toronto E-Mail: fnasser@redhat.com 2323 Yonge Street, Suite #300 Toronto, Ontario M4P 2C9