> I am going to forward a patch suggestion to Joey (upstream).
Thanks!
Best regards
Ole Jørgen Brønner
Dear Ole,
> I'm quite sure the issue is that 'echo' close the stream immediately,
> causing a SIGPIPE that kills the pee process.
>
> [...]
>
> I'm sure there are cases where one wants the SIGPIPE to abort the
> rest of pipes, but there should at least be an option to ignore it.
thanks for your
(echo foo ; sleep 1) | pee cat echo cat cat
Outputs just one foo here.
I'm quite sure the issue is that 'echo' close the stream immediately, causing a
SIGPIPE that kills the pee process.
The same problem happens when you want both head and tail of a large stream:
$ seq 10 | pee 'he
Dear A. Costa,
dear Maintainer,
as soon as you delay the exit of the pipe's input command until all
children of 'pee' are able to output the incoming data, everything
should work as expected; the obvious example:
(echo foo ; sleep 1) | pee cat echo cat cat
Modifying pee to delay the cl
Package: moreutils
Version: 0.47
Severity: normal
Dear Maintainer,
This should print 3 "foo"s, but doesn't:
% echo foo | pee cat echo cat cat | nl -b a
1
2 foo
Discovered the above, while trying to print "hi\nho\n":
% echo hi | pee cat "echo ho"
5 matches
Mail list logo