This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: RFA: >, >>, and "tee" operators
- From: david carlton <carlton at math dot Stanford dot EDU>
- To: Daniel Jacobowitz <drow at mvista dot com>
- Cc: david carlton <carlton at math dot Stanford dot EDU>, Andrew Cagney <ac131313 at ges dot redhat dot com>, gdb-patches at sources dot redhat dot com
- Cc: carlton at math dot Stanford dot EDU
- Date: Thu, 1 Aug 2002 12:16:29 -0700
- Subject: Re: RFA: >, >>, and "tee" operators
- References: <20020725031026.GA20117@nevyn.them.org><3D401D50.4030009@ges.redhat.com><20020725161749.GA10862@nevyn.them.org><3D40371D.6070603@ges.redhat.com><20020730191825.GA17620@nevyn.them.org><3D4758A5.8050605@ges.redhat.com><15688.4371.193070.843000@jackfruit.Stanford.EDU><20020731163628.GA5436@nevyn.them.org><3D494E38.3080106@ges.redhat.com><15689.28390.400986.70448@jackfruit.Stanford.EDU><20020801190348.GA4426@nevyn.them.org>
On Thu, 1 Aug 2002 15:03:48 -0400, Daniel Jacobowitz <drow@mvista.com> said:
> +@table @code
> +@kindex redirect
> +@item redirect [-a] [@var{file} [@var{command}]]
> +Redirect all output to @var{file}.
> +@kindex log
> +@item log [-a] [@var{file} [@var{command}]]
> +Copy output to both the screen and @var{file}.
> +@end table
> +
> +Both @code{redirect} and @code{log} default to overwriting the log file,
> +unless @code{-a} is specified.
Personally, I'd say
Both @code{redirect} and @code{log} default to overwriting
$var{file} unless @code{-a} is specified, in which case they append
to $var{file}.
So two changes: replace "the log file" with "$var{file}" (after all,
is it really a log file if you're using redirect instead of log?), and
make it a bit more explicit what the alternate behaviour is, just in
case the person reading the documentation hasn't gotten much sleep
recently. (And I guess I deleted a comma as well, for better or for
worse: I like the comma in your version but don't like once the bit
about appending is added.)
Incidentally, I hope I'm not being out-of-place in making comments
like this or my earlier ones about syntax; I realize that I'm new to
this list and have comparatively little experience with GDB. I
certainly wouldn't comment on matters internal to GDB without more
experience than I have now.
David Carlton
carlton@math.stanford.edu