THAT is what I want. It is surprising that we found an impredictable behavior.
It should work, or at least we should know that it can't.
(cat < /dev/ttyE2) | tee myfile do not echo anything in myfile, and on ttyE2 was a ongoing string of yes.
insteat, it occupy the current tty, like it was waiting data. But nothing got on the file.
I thought I understood the logic of echo, cat, tee and the redirections, but it seems there are some mysteries yet.
|