Update the code of TinyShell.

long.luo @2013/02/19.