So, is this rectified by adding "-T" to the file association and removing from the shebang line?
I think you should add -T to the association and also leave
it in the shebang line ... the latter as a protection in case
the file association fails someday.