in reply to Re^3: Processing ARGVin thread Processing ARGV
I'm told that with a bad shebang, it uses /bin/sh, which is the ksh around here, so that explains that.
I now have my code working. Thanks for your help.