It seems that per ksh '93 spec (and maybe earlier) doing something like
cat filename |while read $col1 $col2; do
causes, for a 5 line file, output of
seemingly because in that ksh spec the pipes run as separate processes. However, I really need to keep the contents of the array outside the loop. What can I do? Am I even misinterpreting the spec? As a related question, how do I find out which version of ksh I'm running? FYI, I have a Linux RedHat 6.0 install.