On 1/9/25 3:41 PM, Jeff Ketchum wrote:
Excellent! I can stop trying to dig in to the code and understand where all the word expansions happen.So strange to find those one off bugs, and great that it was only one. Do you have, or working on a patch that can be applied to a build?
It will be in the next devel branch push. If you want to try to apply it to the source yourself, here it is: *** ../bash-5.2-patched/subst.c Thu Feb 22 11:08:16 2024 --- subst.c Thu Jan 9 15:08:52 2025 *************** *** 1209,1214 **** if ((flags & SX_NOCTLESC) == 0 && c == CTLESC) { ! i += 2; CHECK_STRING_OVERRUN (i, i, slen, c); continue; } --- 1185,1192 ---- if ((flags & SX_NOCTLESC) == 0 && c == CTLESC) { ! i++; CHECK_STRING_OVERRUN (i, i, slen, c); + ADVANCE_CHAR (string, slen, i); /* CTLESC can quote mbchars */ + CHECK_STRING_OVERRUN (i, i, slen, c); continue; } It's in subst.c:string_extract_verbatim(). -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRU c...@case.edu http://tiswww.cwru.edu/~chet/
OpenPGP_signature.asc
Description: OpenPGP digital signature