THE BUG STILL EXIST, BUT (for me) HAPPEN ONLY ON MIPSBE!!! (Winbox 3.37 64 bit)
I am not able to reply it on RB5009 arm64
[admin@MikroTik] > export
jan/02/1970 00:28:35 by RouterOS 7.7rc1
software id = 05P4-9A42
model = RB922UAGS-5HPacD
serial number = 724606255106
/interface wireless
set [ find default-name=wlan1 ] ssid=MikroTik
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/system routerboard settings
set init-delay=2s reformat-hold-button-max=2m
/system script
add dont-require-permissions=no name=hello-word owner=admin policy=ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon
source=":global helloWorld;\r\n:set helloWorld do={:put "Hello World.";}"
[admin@MikroTik] >
Running the script (no matter if on terminal or on winbox) the run script count increase by 1 and /system script environment report the right value.
But after some minutes and after terminal or winbox is closed, the run script count return to 0 and the environment is cleaned.