Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > gnu.bash.bug > #12074
| From | Chet Ramey <chet.ramey@case.edu> |
|---|---|
| Newsgroups | gnu.bash.bug |
| Subject | Re: Why I love bash scripting? |
| Date | 2015-12-21 16:16 -0500 |
| Message-ID | <mailman.346.1450732575.843.bug-bash@gnu.org> (permalink) |
| References | <27da3e1b-84ae-4cbb-ac35-116b564d3e88@googlegroups.com> |
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/
Back to gnu.bash.bug | Previous | Next — Previous in thread | Find similar | Unroll thread
Why I love bash scripting? ken.w.martin@gmail.com - 2015-12-20 05:44 -0800 Re: Why I love bash scripting? Eduardo A. Bustamante López <dualbus@gmail.com> - 2015-12-20 23:52 -0600 Re: Why I love bash scripting? Chet Ramey <chet.ramey@case.edu> - 2015-12-21 16:16 -0500
csiph-web