I spent much time debugging a corrupted buffer problem and thought the learning would be useful to a larger audience.
Note: I was debugging someone else script ! :-)
tl:dr: if you are using "tee -", you are better to know what you are doing. If you have doubts, read on.