bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] stdbuf work in progress


From: Jim Meyering
Subject: Re: [PATCH] stdbuf work in progress
Date: Tue, 16 Jun 2009 09:13:55 +0200

Pádraig Brady wrote:
> The rest of your comments were hopefully fixed also in the latest version:
>
> http://www.pixelbeat.org/patches/stdbuf.diff

Looks good.
A few suggested documentation changes,
and syntax in tests: please put a space before the trailing "&"
operator:

  $ g grep '[^ &]&$'
  tests/dd/reblock:dd ibs=3 obs=3 if=dd.fifo > out 2> err&
  tests/dd/reblock:dd bs=3 ibs=1 obs=1 if=dd.fifo > out 2> err&
  tests/misc/cat-buf:dd count=1 if=fifo > out 2> err&
  tests/misc/stdbuf:dd count=1 if=fifo > out 2> err&
  tests/misc/stdbuf:dd count=1 if=fifo > out 2> err&
  tests/misc/stdbuf:    # dd count=1 if=fifo > /dev/null 2> err&
  tests/misc/stdbuf:   # dd count=1 if=fifo > out 2> err&


diff --git a/doc/coreutils.texi b/doc/coreutils.texi
index 764f02c..7a857e0 100644
--- a/doc/coreutils.texi
+++ b/doc/coreutils.texi
@@ -14511,8 +14511,8 @@ stdbuf invocation
 @cindex standard streams, buffering
 @cindex line buffered

address@hidden allows one modify the buffering operations of the
-3 standard I/O streams associated with a program.  Synopsis:
address@hidden allows one to modify the buffering operations of the
+three standard I/O streams associated with a program.  Synopsis:

 @example
 stdbuf @address@hidden @var{command}
@@ -14529,19 +14529,19 @@ stdbuf invocation
 @itemx address@hidden
 @opindex -i
 @opindex --input
-Setup the standard input stream buffering.
+Adjust the standard input stream buffering.

 @item -o @var{mode}
 @itemx address@hidden
 @opindex -o
 @opindex --output
-Setup the standard output stream buffering.
+Adjust the standard output stream buffering.

 @item -e @var{mode}
 @itemx address@hidden
 @opindex -e
 @opindex --error
-Setup the standard error stream buffering.
+Adjust the standard error stream buffering.

 @end table

@@ -14556,7 +14556,7 @@ stdbuf invocation
 This option is invalid with standard input.

 @item 0
-Set the stream to unbuffered mode.
+Disable buffering of the selected stream.
 In this mode data is output immediately and only the
 amount of data requested is read from input.


Also, this paragraph is ambiguous.
Can you clarify it?

  NOTE: If @var{command} controls the buffering of its standard streams
  (like @command{tee}) then this will override corresponding settings changed
  by this command.  Also some filters (like @command{dd} and @command{cat} etc.)
  don't use streams for I/O, and are thus unaffected.

Then you're welcome to push.

Thanks for doing all this!




reply via email to

[Prev in Thread] Current Thread [Next in Thread]