On 12/20/15 8:44 AM, ken.w.mar...@gmail.com wrote:

> next, please run
>> bashdb test.sh
> bashdb<0> n
> bashdb<1> n
> bashdb<2> n
> bashdb<3> print ${BASH_REMATCH[0]}
> 
> and you will see that in bashdb BASH_REMATCH is an empty string. It appears 
> the debugger is broken and has probably been so for some time. Could I be 
> doing something wrong?

It's most likely that bashdb uses the =~ operator for its own purposes
and overwrites the BASH_REMATCH contents you want to see.

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU    c...@case.edu    http://cnswww.cns.cwru.edu/~chet/

Reply via email to