From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3552 invoked by alias); 14 Jul 2006 13:46:21 -0000 Received: (qmail 3533 invoked by uid 22791); 14 Jul 2006 13:46:20 -0000 X-Spam-Check-By: sourceware.org Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.31.1) with ESMTP; Fri, 14 Jul 2006 13:46:18 +0000 Received: from drow by nevyn.them.org with local (Exim 4.54) id 1G1Nzk-0006jx-4u; Fri, 14 Jul 2006 09:46:16 -0400 Date: Fri, 14 Jul 2006 13:46:00 -0000 From: Daniel Jacobowitz To: gdb@sourceware.org, gdb@sources.redhat.com Subject: Re: [RFA] New substitute-path commands Message-ID: <20060714134616.GA25849@nevyn.them.org> Mail-Followup-To: gdb@sourceware.org, gdb@sources.redhat.com References: <20060710054027.GF971@adacore.com> <20060710214706.GA2390@adacore.com> <20060710215114.GA31444@nevyn.them.org> <20060710215630.GB2390@adacore.com> <20060710215839.GA31772@nevyn.them.org> <20060713212746.GA1519@adacore.com> <20060714130558.GA24712@nevyn.them.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.11+cvs20060403 X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2006-07/txt/msg00088.txt.bz2 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 > > Cc: Joel Brobecker , gdb@sources.redhat.com > > > > > 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? -- Daniel Jacobowitz CodeSourcery