The guys (and girls) over at sun/opensolaris have released some basic style guides on shell programming, interesting thread here with some input from David Korn on how to use ksh more effectively.
I should really re-read my copy of KornShell Command and Programming Language and start writing less hack’y scripts.