Occasionally when I export in bash it doesn't give an error but it doesn't set the environment variable either. Here's what I mean:
This works:
bash-3.2$ export DYLD=$ABC_HOME
bash-3.2$ env | grep DYLD
DYLD=/Users/my_username/abc_home
But when I continue, these don't:
bash-3.2$ export DYLD_LIBRARY=$ABC_HOME
bash-3.2$ env | grep DYLD
DYLD=/Users/my_username/abc_home
bash-3.2$ export DYLD_L=$ABC_HOME
bash-3.2$ env | grep DYLD
DYLD=/Users/my_username/abc_home
bash-3.2$ export DYLD_=$ABC_HOME
bash-3.2$ env | grep DYLD
DYLD=/Users/my_username/abc_home
Any idea what I could look at to fix this?
FWIW, other exports with underscores work as expected, but this seems to start failing once I add the underscore in.
DYLDprefixes? Could this be an OS X "protection"?DYLDnames: $ env | grep DYLD dyld: warning, unknown environment variable: DYLD_L dyld: warning, unknown environment variable: DYLD_LIBRARYexportcommand to view rhem, rather thanenv?DYLD_are being cleaned from the environment by the installed version ofenv(or by something else)./binand/usr/binare automatically protected. Finally, "[a]ny dynamic linker ( dyld ) environment variables, such as DYLD_LIBRARY_PATH, are purged when launching protected processes." Here, I think the issue is thatenvis protected.