- May
- 13,201
- 180
@niros deserves credit for discovering this one. I just whittled it down. I don't know if it's a bug but it sure is strange. Below (third snippet), the DO command works before the CALL to DUMMY.BTM and it fails afterwards.
Code:
v:\> type dummy.btm
setlocal
endlocal
Code:
v:\> type test.btm
setlocal
echo First try:
which utility:
which myfindstr
do line in /P `echo foo | myfindstr foo` (echo %line)
call dummy.btm
echo ^r^nSecond try:
which utility:
which myfindstr
do line in /P `echo foo | myfindstr foo` (echo %line)
endlocal
Code:
v:\> test.btm
First try:
utility: is an alias : v:\a b
myfindstr is an alias : "utility:\findstr.exe"
foo
Second try:
utility: is an alias : v:\a b
myfindstr is an alias : "utility:\findstr.exe"
TCC: V:\test.btm [13] Unknown command "utility:\findstr.exe"