bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bash --debugger on a script with no arguments


From: Rocky Bernstein
Subject: Re: bash --debugger on a script with no arguments
Date: Wed, 29 Apr 2015 20:05:05 -0400

I am sure you have changed this as you said. But I just don't see it in the current source on savannah in the devel branch. For example I looked at: 

http://git.savannah.gnu.org/cgit/bash.git/tree/shell.c?h=devel

Is there a URL like the one above folks can look at and see the change?

Thanks.


On Wed, Apr 29, 2015 at 7:21 PM, Chet Ramey <chet.ramey@case.edu> wrote:
On 4/29/15 1:51 PM, Rocky Bernstein wrote:
> Now I am really confused and I am not sure we are talking about the same
> thing

We really are.

> In bash-4.3.30 on ftp://ftp.gnu.org/gnu/bash at line 723 of shell.c
> there is:
>
>   if (debugging_mode && locally_skip_execution == 0 && running_setuid == 0
> && dollar_vars[1])
>     start_debugger ();
>
> Shouldn't dollar_vars[1] be dollar_vars[0] (the name of the script to be
> debugged)?

I understand your question, and, as I said, that code was changed back last
November when I was looking at

http://lists.gnu.org/archive/html/bug-bash/2014-11/msg00137.html

As part of investigating it, I noticed the same thing you just reported,
so I fixed that as well.  The change log entries for both issues appear
one right after the other.  That code is in the bash devel branch on
savannah.

--
``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/


reply via email to

[Prev in Thread] Current Thread [Next in Thread]