Strange behavior when importing script

ROS 7.17.2-7.18.2

Script “script1”:

:local "curIP" 10
:put ($"curIP"+1)
  1. /system script run script1
    Output:

11

  1. /put file 1.txt with the very same contents as script 1 above.
  2. run:
    /import file=1.txt verbose=no
    Output:

11
Script file loaded and executed successfully

  1. run:
    /import file=1.txt verbose=yes
    Output:

#line 1
:local “curIP” 10;
#line 2
:put ($“curIP”+1);
1

In the last case we have 1 instead of 11. BUG?
Screenshot.jpg

From the help page:

verbose Reads each line from the file and executes individually, allowing to debug syntax or other errors more easily.

So the last line does not know about the value assigned in the previous line. Try it out with a different variabele name if it gives an error.

https://help.mikrotik.com/docs/spaces/ROS/pages/328155/Configuration+Management

well, that explains the behavior, but it still stays rather strange:
i won’t agree that it

allows debug syntax or > other errors more easily> .

Moreover, it definitely makes things harder to debug and I don’t see much effort for using verbose keyword in case it alters the result of script execution. There should be no

Schrödinger’s cat effect

Not a bug, but a feature that looks like a real bug…

What happens with:

{:local "curIP" 10
:put ($"curIP"+1)}

?

I think that is a relic from the ages when the name “import” was conceived. I’ve found verbose=yes totally unusable to do any debugging.
But I might be wrong, I would like to know any use case when it helps to anything.