Welcome!

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

SignUp Now!

BTMs and pipes ...?

May
12,845
164
What's happening below? "test1.btm | grep bar" works as I'd expect. But executing the same command in test2.btm doesn't.

Code:
v:\> type test1.btm
echo foo
echo bar

v:\> test1.btm | grep bar
bar

v:\> type test2.btm
test1.btm | grep bar

v:\> test2.btm
foo
bar
 
My guess is that because I didn't use CALL, test2.btm exits, taking the pipe with it. ...?
 
That's not quite right.
TCC-RT 24.02.49 x64 Windows 7 [Version 6.1.7601]
Easily reproducible.
grep in my case is a Cygwin one.

Code:
VER /R

TCC-RT  24.02.49 x64   Windows 7 [Version 6.1.7601]
TCC-RT Build 49   Windows 7 Build 7601  Service Pack 1
which grep
grep is an external : C:\Programs\Cygwin_64\bin\grep.EXE
test1.btm
echo foo
foo
echo bar
bar
 
Back
Top