Hmmm... Weird. When I originally tested your code I put the $FN assignment in the script rather than passing it on the command line. I just tried it again passing it in the way you're doing it, and now I see the same thing as you do. Bizarre!