Fix build error when USE_ASM_OPTI_FUNC is enabled
Fix strcmp error when source strlen less than target strlen
shell.c: rename cmd to g_cmd_hist
shell.c: Elimate global variable fdout and fdin