This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: RFA: >, >>, and "tee" operators
- From: Tom Tromey <tromey at redhat dot com>
- To: Daniel Jacobowitz <drow at mvista dot com>
- Cc: gdb-patches at sources dot redhat dot com
- Date: 23 Jul 2002 13:17:04 -0600
- Subject: Re: RFA: >, >>, and "tee" operators
- References: <20020723183956.GA28558@nevyn.them.org>
- Reply-to: tromey at redhat dot com
>>>>> "Daniel" == Daniel Jacobowitz <drow@mvista.com> writes:
Daniel> Here we go. They only work quite right for the CLI; they
Daniel> sort-of work for other front-ends, and print a warning to that
Daniel> effect. Documentation included. These are pretty much how
Daniel> Tom originally did them:
You'll hate to hear this, but I ended up rewriting the patch to be a
`transcript' command. The follow-on discussion to my original patch
convinced me that the names ">" and ">>" weren't that great. Also,
going this route let me remove some of the hacks in cli/.
The new usage I implemented is:
transcript > FILE
transcript >> FILE
transcript | COMMAND
I never submitted my rewrite since I hadn't addressed the one
remaining problem, namely teeing. I can send it if you want it.
Daniel> tee file
Daniel> tee -a file
Maybe tee should be the default? My experiments using the transcript
code indicated to me that it is hard to use gdb when you don't see the
output...
Tom