Global Variables are not global ?

3.0rc9

Within a script:

:global temp 123

and then try to recover this value from terminal:

:env print

Show’s nothing. Is it really true that global variables are now only global within that script ? This is bad… I really need a global variable that works across the entire router. What happened …

What you tried works for me.

The only caveat I found was going the other way. If I had a global variable and I needed to get it into a script, I would have to redeclare it like so.

:global temp $temp

It would then get the global variable and update it when changed in the script.