I'm wondering what's wrong with local() then, since your equivalent does work as you would expect local to actIt's to do with how magic attached to the value (eg pos magic) is sometimes copied to the new value, and sometimes copied back at the end. For example, a localised %ENV still needs to affect environment variables.
It's on my Big List of Things To Fix At Some Point.
Dave.
In reply to Re^4: search position is getting reset after 'local'
by dave_the_m
in thread search position is getting reset after 'local'
by jesuashok
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |