fix for heuristic to detect case statements when parsing $() command substitutions to find history expansion; fix for history not being saved if a SIGHUP arrives during $PROMPT_COMMAND execution; workaround for Cygwin bug that results in bash incorrectly calculating the system pipe size

This commit is contained in:
Chet Ramey committed 2026-03-09 14:54:45 -04:00
1 parent d0b41c2c5f
commit 1f292e433e
16 files changed
+6183 -366

No files matched your search

+2 -2
View File
@@ -652,7 +652,7 @@ initialize_shell_variables (char **env, int privmode)
/* Set history variables to defaults, and then do whatever we would
do if the variable had just been set. Do this only in the case
that we are remembering commands on the history list. */
if (remember_on_history)
if (enable_history_list)
{
name = bash_default_histfile ();
@@ -677,7 +677,7 @@ initialize_shell_variables (char **env, int privmode)
}
#if defined (HISTORY)
if (interactive_shell && remember_on_history)
if (interactive_shell && enable_history_list)
{
sv_history_control ("HISTCONTROL");
sv_histignore ("HISTIGNORE");