This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: Processing of convenience variables for scripts ...
- From: Richard Sharpe <rsharpe at richardsharpe dot com>
- To: Fernando Nasser <fnasser at redhat dot com>
- Cc: Daniel Jacobowitz <drow at mvista dot com>, <gdb at sources dot redhat dot com>
- Date: Fri, 6 Dec 2002 12:23:21 -0800 (PST)
- Subject: Re: Processing of convenience variables for scripts ...
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 :-)
Regards
-----
Richard Sharpe, rsharpe[at]ns.aus.com, rsharpe[at]samba.org,
sharpe[at]ethereal.com, http://www.richardsharpe.com