fix for printing ambiguous redirection >& with declare -f

This commit is contained in:
Chet Ramey
2022-06-07 10:31:06 -04:00
parent ebeba87477
commit b95dd4a066
3 changed files with 21 additions and 1 deletions
+1
View File
@@ -100,6 +100,7 @@ sh_regmatch (string, pattern, flags)
unbind_global_variable_noref ("BASH_REMATCH");
rematch = make_new_array_variable ("BASH_REMATCH");
#else
/* TAG:bash-5.3 */
rematch = builtin_find_indexed_array ("BASH_REMATCH", 1);
#endif
amatch = rematch ? array_cell (rematch) : (ARRAY *)0;