I simply standardise on sh in my scripts for portability among a wide range of operating systems. There was a long period when ksh was not part of the standard install on Linux.
Ok, i have to admit: my initial reaction was peppered with some sarcasm.
(@porter: I do hope you were not offended and took it in the humurous mood it was offered. If not: I'm sorry.)
I think this is raising an interesting question deserving a deeper discussion, so if anyone is interested I'd like to suggest a discussion about (working title):
"How to achieve a maximum of standardization while at the same time recognizing newer developments in the Unix systems programming area?"
As it is i think this is way off-topic in this thread and I'd like to start it somewhere else. Any takers?
I have posted a 3-step-recipe on how to do it. please post what you have written and tell us exactly what did not work with it. I *am* trying to help you but I won't write your code for you.