By registering with us, you'll be able to discuss, share and private message with other members of our community.
SignUp Now!v:\> type teetest.btm
do forever ( echos foo & delay 1 )
v:\> teetest.btm | tee /a teetest.txt
^C
Cancel batch job V:\teetest.btm ? (Y/N/A) : Y
v:\> type teetest.txt
v:\>
v:\> do forever ( delay 1 & echos foo | g:\gnu\tee.exe -a v:\foo.txt )
foofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoo^C
v:\> type foo.txt
foofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoo
I used ECHOS because I don't want newlines in the console or in the file!
What about the second behavior I mentioned when TEE produces nothing at all (console or file) if there are no newlines in stdout?WAD. TEE has always (for the past 25 years) appended a CR/LF at the end of the output. This is by request, and will not be changed.
What about the second behavior I mentioned when TEE produces nothing at all (console or file) if there are no newlines in stdout?