at the top of your script make any difference? Are you using 5.8 from sunfreeware.com, compiled yourself or a sun package? I have compiled my self and used sunfreeware all over the place and not seen this before. There has to be something wierd going on here this is not normal. also could you try a
on that output file and see if there are any wierd characters in the /bin/sh line?