It seems your echo does not support the -e switch. Korn shell? Why don't you try print or printf instead of echo ? And when using print , use - just before the arguments so that you don't get errors while printing strings starting with hyphens.
What is not working? and what did you try? Also, mention the ksh version (set emacs editing mode on ( set -o emacs ) and type Ctrl followed by V or try with echo ${.sh.version} ).