Update msh.c

fix msh_exec(char* cmd, rt_size_t length) bug