shell.c: rename cur_hist to g_cur_cmd_hist_pos