commit bash-20111229 snapshot

This commit is contained in:
Chet Ramey
2012-01-09 08:37:11 -05:00
parent eb4206df36
commit 45c0f7f8e8
38 changed files with 22796 additions and 18994 deletions
+6 -2
View File
@@ -1623,7 +1623,9 @@ init_noninteractive ()
expand_aliases = posixly_correct; /* XXX - was 0 not posixly_correct */
no_line_editing = 1;
#if defined (JOB_CONTROL)
set_job_control (0);
/* Even if the shell is not interactive, enable job control if the -i or
-m option is supplied at startup. */
set_job_control (forced_interactive||jobs_m_flag);
#endif /* JOB_CONTROL */
}
@@ -1720,7 +1722,7 @@ shell_initialize ()
#endif
/* Initialize the data structures for storing and running jobs. */
initialize_job_control (0);
initialize_job_control (jobs_m_flag);
/* Initialize input streams to null. */
initialize_bash_input ();
@@ -1765,6 +1767,8 @@ shell_reinitialize ()
forced_interactive = interactive_shell = subshell_environment = 0;
expand_aliases = 0;
/* XXX - should we set jobs_m_flag to 0 here? */
#if defined (HISTORY)
bash_history_reinit (0);
#endif /* HISTORY */