--- shell.c.old 2009-11-19 18:05:54.000000000 +0300 +++ shell.c 2011-12-26 16:55:08.452997751 +0400 @@ -1625,8 +1625,13 @@ static void init_interactive_script () { - init_noninteractive (); - expand_aliases = interactive_shell = startup_state = 1; + init_interactive (); +#if defined (HISTORY) + bash_history_reinit (0); +#endif /* HISTORY */ + expand_aliases = posixly_correct; /* XXX - was 0 not posixly_correct */ + no_line_editing = 1; + interactive = 0; } void --- jobs.c.old 2009-11-30 01:12:05.000000000 +0300 +++ jobs.c 2011-12-26 16:56:13.716721461 +0400 @@ -3581,7 +3581,7 @@ } /* We can only have job control if we are interactive. */ - if (interactive == 0) + if (interactive_shell == 0) { job_control = 0; original_pgrp = NO_PID;