From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19694 invoked by alias); 17 Feb 2004 20:15:08 -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 19602 invoked from network); 17 Feb 2004 20:15:07 -0000 Received: from unknown (HELO nevyn.them.org) (66.93.172.17) by sources.redhat.com with SMTP; 17 Feb 2004 20:15:07 -0000 Received: from drow by nevyn.them.org with local (Exim 4.30 #1 (Debian)) id 1AtBcY-0001Ln-Cr; Tue, 17 Feb 2004 15:15:06 -0500 Date: Tue, 17 Feb 2004 20:15:00 -0000 From: Daniel Jacobowitz To: Andrew Cagney Cc: gdb@sources.redhat.com Subject: Re: Pending breakpoints and scripts Message-ID: <20040217201506.GA5155@nevyn.them.org> Mail-Followup-To: Andrew Cagney , gdb@sources.redhat.com References: <20040209223227.GA7344@nevyn.them.org> <40294BA1.3020906@gnu.org> <20040210222616.GA32636@nevyn.them.org> <402A3CBB.1060508@gnu.org> <20040211144755.GA487@nevyn.them.org> <40326A70.8050601@gnu.org> <20040217193118.GA31755@nevyn.them.org> <40326DD9.8030807@gnu.org> <20040217194114.GA32400@nevyn.them.org> <403275DF.6070209@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <403275DF.6070209@gnu.org> User-Agent: Mutt/1.5.1i X-SW-Source: 2004-02/txt/msg00210.txt.bz2 On Tue, Feb 17, 2004 at 03:13:19PM -0500, Andrew Cagney wrote: > > >>>>Lets see if we can pin down the interface (adding JeffJ to the CC list): > >>>> > >>>>nquery("A question?") > >>>> > >>>> A question? [n]: > >>>> > >>>> - press return => implied "n" > >>>> - batch mode => implied "n" > > > >>> > >>> > >>>How would you feel about "[n/y]"? Otherwise, I like this. > > > >> > >>As in? > > > > > >nquery("A question?"); > > A question? (n or y) > > > >or > > > > A question? [n/y]: > > > >Simply to clarify that it is a yes-no question. > > Er, ... > > > How about this, we introduce: > > nquery() > > yquery() > > where the default (batch mode, and when return is pressed is n/y > > respectively). > > with what you suggest, how is the user to differientiate the > consequences of entering return when presented with either of: > nquery("A question?") > A question? [y/n]: > and > yquery("A question?") > A question? [y/n]: > something like: > A question? (y or n) [n]: > would be needed (which would be getting into redundant verbage). Easy, it would be: > nquery("A question?") > A question? [n/y]: > yquery("A question?") > A question? [y/n]: If you want to use (y or n) [y], then that's fine by me too. -- Daniel Jacobowitz MontaVista Software Debian GNU/Linux Developer