I’m writing the following script:
:set $name pppoe-10-21-10-2
:put $"name"
:put [/interface find name=$"name"]
:put [/interface find name=pppoe-10-21-10-2]
Execution result is:
[admin@MikroTik] /system script> run 0
pppoe-10-21-10-2
*2;*5;*7;*b;*3;*4;*6;*9;*a
*7
The variable $name stores exact same string as the string constant. But the first find returns all interfaces, while the second find returns only the specified interface. Why? I want the first find to return same result as the second find.