Hi, Josh-
Indeed, the following crashed for me on Mac OS (which you are using):
+ Running "bash test_drive.sh", when "test_drive.sh" looks like:
#!/bin/sh
afni -com 'OPEN_WINDOW A.axialimage' \
FT_epi_r1+orig.HEAD
... run in the Bootcamp dataset: ~/AFNI_data6/FT_analysis/FT/. (Note that on Ubuntu, it worked fine).
However, this worked for me, with the addition of sourcing ~/.bashrc:
#!/bin/sh
source ~/.bashrc
afni -com 'OPEN_WINDOW A.axialimage' \
FT_epi_r1+orig.HEAD
... so I think it is an issue of how Mac shells source ~/.bash* files (or not, as the case may be) when a script is run.
--pt