*** ../bash-4.1-patched/bashline.c 2010-03-26 12:15:37.000000000 -0400 --- bashline.c 2010-03-30 23:25:22.000000000 -0400 *************** *** 864,867 **** --- 864,868 ---- char *command, *metaval; int r, cclc, rrs, metaflag; + sh_parser_state_t ps; rrs = rl_readline_state; *************** *** 898,902 **** --- 899,905 ---- if (rl_deprep_term_function) (*rl_deprep_term_function) (); + save_parser_state (&ps); r = parse_and_execute (command, (editing_mode == VI_EDITING_MODE) ? "v" : "C-xC-e", SEVAL_NOHIST); + restore_parser_state (&ps); if (rl_prep_term_function) (*rl_prep_term_function) (metaflag);