Difficult to tell from that; try putting
as the 2nd line of your code (ie after the #!/bin/ksh line).
This shows what the parser is doing ie the 'before' & 'after' parsing of each line; very good for debugging.
Also, next time, please use code tags when posting https://www.linuxquestions.org/quest...do=bbcode#code
to preserve formatting & makes it easier to read.