This is the mail archive of the
mailing list for the GDB project.
Re: [RFA] New substitute-path commands
On Fri, Jul 14, 2006 at 04:43:22PM +0300, Eli Zaretskii wrote:
> > Date: Fri, 14 Jul 2006 09:05:59 -0400
> > From: Daniel Jacobowitz <firstname.lastname@example.org>
> > Cc: Joel Brobecker <email@example.com>, firstname.lastname@example.org
> > > If this _adds_ a rule, then "set SOMETHING" is not a good UI, IMO.
> > > How about just "substitute-path", similar to "dir", which also _adds_
> > > a directory?
> > This was my suggestion, so I'll defend it :-) I think of it as set "the
> > substitution path for FROM" to "TO". The parallel is set env VAR
> > VALUE, which sets the environment variable VAR to VALUE.
> In that case, we should at least have "show substitute-path FROM", not
> just "show substitute-path".
Sounds good to me!
I wonder if there's a way we can share the code for this and set env,
thus making it easier in the future to add similar variables?