$KMVAR not working in 11.0.4

In KM 11.0.4, this:

Results in this:

123

But it should result in:

testing
123

Running macOS 15.5. It works as expected on KM 10.2.

Test.kmmacros (2.0 KB)

You haven't made the myVar variable available to the shell.

Click the down-arrow next to the script text field

image

and either select "Include All Variables" or -- and much better -- tick just the variables you need:

image

1 Like

Now it all makes sense, thanks!