Because then you want to outputs at least, otherwise you'd end up with a new pipe just containing what you consumed. Not very interesting. And it was decided that the semantics of a one -> one tee was more appropriate than a one -> two where the input is consumed.
With the current tee, you can think of it as simply a pipe dupe with memcpy() like semantics.
Copyright © 2017, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds