V4.0 beta 4 - script issue - :environment print

As reported by user changeip,

I found the same problem:

:env print

doesn’t print global and local variables, but a lot of … OS “debug like” information

Additional search words: bug

Actually :environment print shows lua defined variables and also your defined variables. If you look through the list you can find them.

V4.0 rc1 fixed it.