[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: bash --debugger on a script with no arguments
From: |
Chet Ramey |
Subject: |
Re: bash --debugger on a script with no arguments |
Date: |
Wed, 29 Apr 2015 19:21:10 -0400 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 |
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/
- bash --debugger on a script with no arguments, Rocky Bernstein, 2015/04/29
- Re: bash --debugger on a script with no arguments, Chet Ramey, 2015/04/29
- Re: bash --debugger on a script with no arguments, Rocky Bernstein, 2015/04/29
- Re: bash --debugger on a script with no arguments,
Chet Ramey <=
- Re: bash --debugger on a script with no arguments, Rocky Bernstein, 2015/04/29
- Re: bash --debugger on a script with no arguments, Chet Ramey, 2015/04/29
- Re: bash --debugger on a script with no arguments, Rocky Bernstein, 2015/04/29
- Re: bash --debugger on a script with no arguments, Chet Ramey, 2015/04/29
- Re: bash --debugger on a script with no arguments, Rocky Bernstein, 2015/04/29
- Re: bash --debugger on a script with no arguments, Chet Ramey, 2015/04/30
- Re: bash --debugger on a script with no arguments, Rocky Bernstein, 2015/04/30