Path: csiph.com!au2pb.net!feeder.erje.net!2.us.feeder.erje.net!news.glorb.com!usenet.stanford.edu!not-for-mail From: Chet Ramey Newsgroups: gnu.bash.bug Subject: Re: Why I love bash scripting? Date: Mon, 21 Dec 2015 16:16:03 -0500 Lines: 19 Approved: bug-bash@gnu.org Message-ID: References: <27da3e1b-84ae-4cbb-ac35-116b564d3e88@googlegroups.com> Reply-To: chet.ramey@case.edu NNTP-Posting-Host: lists.gnu.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Trace: usenet.stanford.edu 1450732576 7724 208.118.235.17 (21 Dec 2015 21:16:16 GMT) X-Complaints-To: action@cs.stanford.edu Cc: chet.ramey@case.edu To: ken.w.martin@gmail.com, bug-bash@gnu.org Envelope-to: bug-bash@gnu.org User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 In-Reply-To: <27da3e1b-84ae-4cbb-ac35-116b564d3e88@googlegroups.com> X-Mirapoint-Virus-RAPID-Raw: score=unknown(0), refid=str=0001.0A020206.56786C13.0171, ss=1, re=0.000, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0, ip=0.0.0.0, so=2015-08-12 04:07:17, dmn=2013-03-21 17:37:32 X-Mirapoint-Loop-Id: 687eeb79710f7c1a136cac020a895f2d X-Junkmail-Whitelist: YES (by domain whitelist at mpv4-2015.case.edu) X-Mirapoint-Virus-RAPID-Raw: score=unknown(0), refid=str=0001.0A020202.56786C18.002E,ss=1,re=0.000,fgs=0, ip=0.0.0.0, so=2015-08-12 04:07:17, dmn=2011-05-27 18:58:46 X-Mirapoint-Loop-Id: 5c08f80ce0ac9e0006bfb6adf7ec7cd1 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 129.22.103.195 X-BeenThere: bug-bash@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Bug reports for the GNU Bourne Again SHell List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com gnu.bash.bug:12074 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/