I have some more clues here. I can reproduce this strange behavior with just
bash, no python needed.
$ oslc -IincA -IincB blah.osl
adding 'incA'<-- my debug, shows that the '-IincA' was parsed on the
command line
adding 'incB'<-- my debug, shows that the '-IincB' was parsed on t
So I was able to also reproduce simply as this:
works: oslc -IincA -IincB blah.osl
broken: DYLD_LIBRARY_PATH= oslc -IincA -IincB blah.osl
The only thing in my DYLD_LIBRARY_PATH was /usr/local/opt/llvm
It seems that what was happening was that in cases where I didn't have
/usr/l