Quote:
might it be an introduction of a non-Unix style linefeed upsetting the script?

First thing I checked. Taking the existing, working script, editing and resaving with the CR/LF pairs (no textual edits), and running it, works.

Only editing that function in the ways suggested cause it to fail. Not the CR/LF issue.
_________________________
Tony Fabris