Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:38.0) Gecko/20100101 Thunderbird/38.4.0
On 12/20/15 8:44 AM, ken.w.martin@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 chet@case.edu http://cnswww.cns.cwru.edu/~chet/