TEE /A adds newline?

May 20, 2008
10,672
83
Syracuse, NY, USA
I'm pretty sure I asked about this not too long ago, but I can't find it. And the forum's search won't let me search for "TEE". I was bitten by it again today. Below, TEE /A is apparently adding a newline to both the output and to the file.

Code:
v:\> type teetest.btm
do i=1 to 2
        echos foo | tee /a teetest.log
        echo bar | tee /a teetest.log
        delay 1
enddo
v:\> teetest.btm
foo
bar
foo
bar

v:\> type teetest.log
foo
bar
foo
bar

Is there any way around that? I want to start a line (with echos) in one place in a BTM and end it elsewhere (with echo).

For now, the workaround is to use Gnu's TEE.EXE.
 
Jun 2, 2008
338
3
I found this thread by searching for newline in posts created by you, and then using the browser to search the pages of search results for tee.

 
Apr 18, 2014
250
8
And I think this is the thread that you couldn’t find