Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

TEE /A adds newline?

May
12,933
170
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.
 
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.

 
And I think this is the thread that you couldn’t find

 

Similar threads

Back
Top