truss -o /tmp/G -f SCRIPT_NAME_HERE.sh

vi /tmp/G (error in there somewhere)

search error:

man -s 2 intro (search for error here)