what exactly $? and $# means ?
'man ksh' yields:
Parameters Set by Shell
The following parameters are automatically set by the shell:
# The number of positional parameters in decimal.
? The decimal value returned by the last executed com-
mand.