- May
- 13,117
- 180
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.
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.
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.