You wrote:
>Thanks a lot for the report and patch!
>I've applied it with a minor change; diff below.
>
>BTW, it's not just with pipes:
>
> $ echo abc > x
> $ (./head -c1; ./head -c1) < x
> ab$
>
>The above is with the fixed version.
>Without your fix, the output would be just `a'.
I hadn't thought of that, but it makes sense. The shell just dup2()'s
the open file descriptor onto the standard input of each successive
child process.
>+ size_t bytes_to_read = BUFSIZE;
Shouldn't bytes_to_read, bytes_to_write, and bytes_read all be of type
size_t?
-- Ian Bruce <ian dot bruce at myrealbox dot com>
_______________________________________________
Bug-textutils mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-textutils