Welcome!

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

SignUp Now!

SETLOCAL removes Aliases and Functions

Aug
1,917
68
Back in;
Code:
TCC  18.00.32 x64   Windows 7 [Version 6.1.7601]
when I type SETLOCAL at the command prompt, I still had all of my ALIASes and FUNCTIONs.

Now, in;
Code:
TCC  22.00.32 x64   Windows 7 [Version 6.1.7601]
when I type SETLOCAL at the command prompt, I loose all of my ALIASes and FUNCTIONS.

When I type ENDLOCAL at the command prompt, they return.

Is there a setting that has changed from v18 to v22?

Joe
 
Everything is as it should be when used in a .BTM file;
Code:
@setlocal
@echo off
alias
function
endlocal
...that is, I do not loose my ALIAS and FUNCTIONs.

Joe
 
After reading about the GLOBALLISTS option of SETLOCAL, doing;
Code:
setlocal globallists
...SETLOCAL now works as it used to in v18.

Thanks!

Joe
 

Similar threads

Back
Top