Quantcast
Channel: Take Command / TCC
Viewing all articles
Browse latest Browse all 1680

CALL ... SETLOCAL/ENDLOCAL ... DO ... alias expansion glitch?

$
0
0
@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...

Read more

Viewing all articles
Browse latest Browse all 1680

Trending Articles