Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #11646

Re: Debian: bash --debugger doesn't start the debugger

From Chet Ramey <chet.ramey@case.edu>
Newsgroups gnu.bash.bug
Subject Re: Debian: bash --debugger doesn't start the debugger
Date 2015-10-13 09:10 -0400
Message-ID <mailman.227.1444741918.7904.bug-bash@gnu.org> (permalink)
References <561C150C.6080403@periapt.co.uk>

Show all headers | View raw


On 10/12/15 4:16 PM, Nicholas Bamber wrote:
> My investigations indicate that it is still true that as per Debian bug
> report (https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=403304)
> --debugger does NOT start the debugger UNLESS the debugged script has a $1.

We discussed this in a thread on bug-bash back in April:

http://lists.gnu.org/archive/html/bug-bash/2015-04/msg00183.html

This discussion references an earlier bug report concerning whether the
--debugger option should produce an error if the bashdb script is not
installed.  There is also an issue with bashdb misbehaving when run in
an interactive shell; that was the reason for the check of $1 in the
first place.

Part of that thread explains why a check of $0 is not correct: since $0
is always set, a check for it has no effect.

The final change that solves both problems went into the bash development
branch in early May, and will be in bash-4.4.

-- 
``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 | Find similar


Thread

Re: Debian: bash --debugger doesn't start the debugger Chet Ramey <chet.ramey@case.edu> - 2015-10-13 09:10 -0400

csiph-web