mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-07-13 15:10:49 +02:00
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:
@@ -3306,6 +3306,8 @@ reset_parser ()
|
||||
if (parser_state & (PST_EXTPAT|PST_CMDSUBST))
|
||||
extended_glob = extglob_flag;
|
||||
#endif
|
||||
if (parser_state & (PST_CMDSUBST|PST_STRING))
|
||||
expand_aliases = expaliases_flag;
|
||||
|
||||
parser_state = 0;
|
||||
here_doc_first_line = 0;
|
||||
@@ -4392,6 +4394,7 @@ parse_string_to_command (string, flags)
|
||||
if (flags & SX_COMPLETE)
|
||||
parser_state |= PST_NOERROR;
|
||||
|
||||
parser_state |= PST_STRING;
|
||||
expand_aliases = 0;
|
||||
|
||||
cmd = 0;
|
||||
@@ -6409,7 +6412,7 @@ parse_string_to_word_list (s, flags, whom)
|
||||
/* State flags we don't want to persist into compound assignments. */
|
||||
parser_state &= ~PST_NOEXPAND; /* parse_comsub sentinel */
|
||||
/* State flags we want to set for this run through the tokenizer. */
|
||||
parser_state |= PST_COMPASSIGN|PST_REPARSE;
|
||||
parser_state |= PST_COMPASSIGN|PST_REPARSE|PST_STRING;
|
||||
}
|
||||
|
||||
while ((tok = read_token (READ)) != yacc_EOF)
|
||||
|
||||
Reference in New Issue
Block a user