Open graeme-winter opened 2 years ago
silver-surfer tmp :) $ cat test.sh
echo $DYLD_FALLBACK_LIBRARY_PATH
if [ -n "$DYLD_FALLBACK_LIBRARY_PATH" ] ; then echo $DYLD_FALLBACK_LIBRARY_PATH ; fi
silver-surfer tmp :) $ ./test.sh
/usr/X11/lib:/usr/lib::
/usr/X11/lib:/usr/lib::
silver-surfer tmp :) $ bash test.sh
silver-surfer tmp :) $
OK, I suspect we have something to do with SIP happening in here
When I add the #!/bin/bash
to the top of the script I reproduce the issue here ->
silver-surfer tmp :) $ cat test.sh
#!/bin/bash
echo $DYLD_FALLBACK_LIBRARY_PATH
if [ -n "$DYLD_FALLBACK_LIBRARY_PATH" ] ; then echo $DYLD_FALLBACK_LIBRARY_PATH ; fi
silver-surfer tmp :) $ ./test.sh
-> I do not know what the right solution is here; disable SIP seems nasty.
does not do what we would expect
which means anything which depends on system libraries fails e.g.
fails