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: Chet Ramey
Subject: Re: bash --debugger on a script with no arguments
Date: Wed, 29 Apr 2015 20:22:01 -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 8:05 PM, Rocky Bernstein wrote:
> 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?

I am not sure what you're talking about. The code change is in there:

  if (debugging_mode && locally_skip_execution == 0 && running_setuid == 0
&& (dollar_vars[1] || interactive_shell == 0))
    start_debugger ();

If it doesn't work like you think it should, let me know, but at least
test it first.

Don't assume it wasn't changed just because it doesn't test dollar_vars[0].
Since dollar_vars[0] is always set, testing it would not have any effect.

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU    address@hidden    http://cnswww.cns.cwru.edu/~chet/



reply via email to

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