7 Bug-Reported-by: Marco <maroloccio@gmail.com>
8 Bug-Reference-ID: <eaf9af76-c4ed-8b61-c517-22ed980529d3@gmail.com>
9 Bug-Reference-URL: https://lists.gnu.org/archive/html/bug-bash/2023-02/msg00044.html
13 Fix bug where associative array compound assignment would not expand tildes
16 Patch (apply with `patch -p0'):
18 *** ../bash-20230105/arrayfunc.c Thu Jan 5 14:23:28 2023
19 --- arrayfunc.c Wed Feb 8 16:27:48 2023
24 ! aval = expand_subscript_string (v, 0);
30 ! aval = expand_assignment_string_to_string (v, 0);
37 ! val = expand_subscript_string (val, 0);
43 ! val = expand_assignment_string_to_string (val, 0);
48 nword[i++] = w[ind++];
50 ! t = expand_subscript_string (w+ind, 0);
51 s = (t && strchr (t, CTLESC)) ? quote_escapes (t) : t;
52 value = sh_single_quote (s ? s : "");
54 nword[i++] = w[ind++];
56 ! t = expand_assignment_string_to_string (w+ind, 0);
57 s = (t && strchr (t, CTLESC)) ? quote_escapes (t) : t;
58 value = sh_single_quote (s ? s : "");
59 *** ../bash-20230201/subst.c Mon Jan 30 16:19:46 2023
60 --- subst.c Mon Feb 6 16:25:22 2023
67 td.flags = W_NOPROCSUB|W_NOTILDE|W_NOSPLIT2; /* XXX - W_NOCOMSUB? */
69 + td.flags = W_NOPROCSUB|W_NOSPLIT2; /* XXX - W_NOCOMSUB? */
71 td.word = savestring (string); /* in case it's freed on error */
74 *** ../bash-5.2/patchlevel.h 2020-06-22 14:51:03.000000000 -0400
75 --- patchlevel.h 2020-10-01 11:01:28.000000000 -0400
78 looks for to find the patch level (for the sccs version string). */
80 ! #define PATCHLEVEL 23
82 #endif /* _PATCHLEVEL_H_ */
84 looks for to find the patch level (for the sccs version string). */
86 ! #define PATCHLEVEL 24
88 #endif /* _PATCHLEVEL_H_ */