From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24623 invoked by alias); 25 Jul 2002 02:01:06 -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 24614 invoked from network); 25 Jul 2002 02:01:04 -0000 Received: from unknown (HELO localhost.redhat.com) (216.138.202.10) by sources.redhat.com with SMTP; 25 Jul 2002 02:01:04 -0000 Received: from ges.redhat.com (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id 21D3D3D36; Wed, 24 Jul 2002 22:01:04 -0400 (EDT) Message-ID: <3D3F5BDF.2050209@ges.redhat.com> Date: Wed, 24 Jul 2002 20:10:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:1.0.0) Gecko/20020708 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Daniel Jacobowitz Cc: Tom Tromey , gdb-patches@sources.redhat.com Subject: Re: RFA: >, >>, and "tee" operators References: <20020723183956.GA28558@nevyn.them.org> <871y9ub6fj.fsf@fleche.redhat.com> <20020723192325.GA30738@nevyn.them.org> <87d6te8a6o.fsf@fleche.redhat.com> <20020723202051.GA5427@nevyn.them.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2002-07/txt/msg00500.txt.bz2 > On Tue, Jul 23, 2002 at 02:24:15PM -0600, Tom Tromey wrote: > >> >>>>> "Daniel" == Daniel Jacobowitz writes: > >> > >> >> transcript > FILE >> >> transcript >> FILE >> >> transcript | COMMAND > >> >> Daniel> I don't like this syntax very much. It looks too much like >> Daniel> dumping the output of a command ("transcript") to the file, >> Daniel> not like a redirection for the future output. >> >> Good point. >> >> Daniel> Also - is piping to a command actually useful? >> >> I don't know. I haven't even been running with this patch in place, >> since the feature in general is only occasionally useful to me. I >> thought I saw a request for this (piping to a command)? >> >> Daniel> Hmm... How do you feel about: >> Daniel> transcript [-append] FILE >> Daniel> tee [-append] FILE >> Daniel> Where transcript replaces ">" and ">>"? >> >> That looks good to me. Or even `transcript [-tee] [-append] FILE'. >> Or maybe `[-notee]', with tee as the default. > > > I'd rather have tee as the default, also. But -notee doesn't look > right, so I left it as two commands. Anyone else out on the list have > a suggestion? Does the `transcript FILE' command send both the user input (prompts?) and output to the file (output also to the console)? Like unix script? I guess the corresponding ``tee FILE'' command just writes output? I think there is also a need for a tempoary redirection. So I guess either the obscure: >FILE ... maybe? log FILE ..... GDB's option identifier is ``/'' and not ``-''. See the print/ commands. ``-'' has the problem of being a valid expression operator. I should note that the current parser is pretty broken. It can't differentiate between: transcript/f transcript /f (sigh) but that is a fixable problem. Andrew