diff options
author | Chet Ramey <chet.ramey@case.edu> | 2021-11-17 16:46:40 -0500 |
---|---|---|
committer | Chet Ramey <chet.ramey@case.edu> | 2021-11-17 16:46:40 -0500 |
commit | c839339fbfd2bb7ee4a523b64c7f3734ba36b9bc (patch) | |
tree | ecf950ecb04bf3f3f8211e356d47e8ad9780ff69 | |
parent | 910fcdc415abeb3d7d85fb46ee0d3e804a4c47a6 (diff) | |
download | bash-c839339fbfd2bb7ee4a523b64c7f3734ba36b9bc.tar.gz |
Bash-5.1 patch 11: save and restore alias parsing when performing compound array assignment
-rw-r--r-- | parse.y | 4 | ||||
-rw-r--r-- | patchlevel.h | 2 | ||||
-rw-r--r-- | y.tab.c | 4 |
3 files changed, 1 insertions, 9 deletions
@@ -6493,10 +6493,8 @@ parse_string_to_word_list (s, flags, whom) old_expand_aliases = expand_aliases; push_stream (1); -#if 0 /* TAG: bash-5.2 Alex fxmbsw7 Ratchev <fxmbsw7@gmail.com> 11/17/2020 */ if (ea = expanding_alias ()) parser_save_alias (); -#endif last_read_token = WORD; /* WORD to allow reserved words here */ current_command_line_count = 0; echo_input_at_read = expand_aliases = 0; @@ -6531,10 +6529,8 @@ parse_string_to_word_list (s, flags, whom) last_read_token = '\n'; pop_stream (); -#if 0 /* TAG: bash-5.2 */ if (ea) parser_restore_alias (); -#endif #if defined (HISTORY) remember_on_history = old_remember_on_history; diff --git a/patchlevel.h b/patchlevel.h index 75246e44..8b14f289 100644 --- a/patchlevel.h +++ b/patchlevel.h @@ -25,6 +25,6 @@ regexp `^#define[ ]*PATCHLEVEL', since that's what support/mkversion.sh looks for to find the patch level (for the sccs version string). */ -#define PATCHLEVEL 10 +#define PATCHLEVEL 11 #endif /* _PATCHLEVEL_H_ */ @@ -8787,10 +8787,8 @@ parse_string_to_word_list (s, flags, whom) old_expand_aliases = expand_aliases; push_stream (1); -#if 0 /* TAG: bash-5.2 Alex fxmbsw7 Ratchev <fxmbsw7@gmail.com> 11/17/2020 */ if (ea = expanding_alias ()) parser_save_alias (); -#endif last_read_token = WORD; /* WORD to allow reserved words here */ current_command_line_count = 0; echo_input_at_read = expand_aliases = 0; @@ -8825,10 +8823,8 @@ parse_string_to_word_list (s, flags, whom) last_read_token = '\n'; pop_stream (); -#if 0 /* TAG: bash-5.2 */ if (ea) parser_restore_alias (); -#endif #if defined (HISTORY) remember_on_history = old_remember_on_history; |