From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8155 invoked by alias); 22 Jun 2003 18:07:24 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 8148 invoked from network); 22 Jun 2003 18:07:23 -0000 Received: from unknown (HELO crack.them.org) (146.82.138.56) by sources.redhat.com with SMTP; 22 Jun 2003 18:07:23 -0000 Received: from dsl093-172-017.pit1.dsl.speakeasy.net ([66.93.172.17] helo=nevyn.them.org ident=mail) by crack.them.org with asmtp (Exim 3.12 #1 (Debian)) id 19U9GA-0002hJ-00; Sun, 22 Jun 2003 13:08:14 -0500 Received: from drow by nevyn.them.org with local (Exim 3.36 #1 (Debian)) id 19U9FH-0001vi-00; Sun, 22 Jun 2003 14:07:19 -0400 Date: Sun, 22 Jun 2003 18:07:00 -0000 From: Daniel Jacobowitz To: Andrew Cagney Cc: gdb-patches@sources.redhat.com Subject: Re: RFC: Syntax for logging Message-ID: <20030622180719.GA7389@nevyn.them.org> Mail-Followup-To: Andrew Cagney , gdb-patches@sources.redhat.com References: <20030621172358.GA8711@nevyn.them.org> <3EF5EFAD.6010401@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3EF5EFAD.6010401@redhat.com> User-Agent: Mutt/1.5.1i X-SW-Source: 2003-06/txt/msg00704.txt.bz2 On Sun, Jun 22, 2003 at 02:04:29PM -0400, Andrew Cagney wrote: > >Folks may remember the thread from a year ago: > > RFA: >, >>, and "tee" operators > > http://sources.redhat.com/ml/gdb-patches/2002-07/msg00458.html > > > >I eventually decided that my prefered syntax was: > > redirect [-a] [FILE [COMMAND]] > > log [-a] [FILE [COMMAND]] > >But people didn't care for the use of "-a". I still like this syntax; it's > >symmetric, and it allows clearly "transcript [-a]". But it's pretty clear > >to me that we won't reach a consensus on that. I believe Fernando liked it > >and Andrew didn't. > > > >I believe the best alternative at this point is: > > set logging [redirect|log] [append|overwrite] FILE > > > show logging > >The defaults would be log,overwrite; they could be explicitly specified in > >order to overwrite a log file named append, if one wanted to do that. > > > >Comments, anyone? Shall I repost the patch with that change? I'd really > >like to see this feature added. > > Set show are consistent with the command line syntax. How does one turn > it off? Hmm, two options: set logging unset logging I like "unset logging"; how about you? The only thing we use unset for at the moment is "unset environment" but I think it extends naturally. -- Daniel Jacobowitz MontaVista Software Debian GNU/Linux Developer