Shell variables not working in El Capitan


I’m trying to access variables like $KMVAR_My_variable in “Execute Shell Script” actions, but they’re always empty. The same macro worked well in Yosemite.

I don’t see any KMVAR_ variables when I printenv or ( set -o posix ; set ) | less

What am I missing?

Just use the Execute Shell Script action, display results in a window, with script:


and it will display the environment which will show you all the KMVAR variables.

Ah! This tip was very helpful. I’ve resolved the issue I was having.