change to readline callback signal handling; fix message when popping shell function context; handle new terminating signals inside terminating signal handler; fix to pattern substitution with null replacement and null string; fix to alias expansion when we get a SIGINT while entering a command substitution in an interactive shell

This commit is contained in:
Chet Ramey
2022-10-15 13:34:51 -04:00
parent 55a8311420
commit 055a4552c9
15 changed files with 139 additions and 24 deletions
+3 -1
View File
@@ -5413,7 +5413,9 @@ pop_var_context ()
vcxt = shell_variables;
if (vc_isfuncenv (vcxt) == 0)
{
internal_error (_("pop_var_context: head of shell_variables not a function context"));
/* If we haven't flushed all of the local contexts already, flag an error */
if (shell_variables != global_variables || variable_context > 0)
internal_error (_("pop_var_context: head of shell_variables not a function context"));
return;
}