On 10/16/19 1:34 PM, Rocky Bernstein wrote: > Current in bash 5.0 and earlier, the value of BASH_REMATCH might chanted > inside a debug hook. > > Since BASH_REMATCH is read-only, resetting the value on hook return to the > debugged program is a bit tricky and fragile...
How about we just make it not read-only? The shell will still set it when it does regexp matching. -- ``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/