bug-bash
[Top][All Lists]
Advanced

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

bash 4.4 and BASHOPTS containing extdebug in env


From: Grisha Levit
Subject: bash 4.4 and BASHOPTS containing extdebug in env
Date: Mon, 25 Apr 2016 22:45:39 -0400

This seems new for 4.4.  Having extdebug in BASHOPTS seems to change the invocation behavior to mimic that of having specified the --debugger option, which I don't think is usually the intention:

$ shopt -s extdebug; export BASHOPTS
$ bash -c 'echo $BASH_VERSION; shopt -p extdebug'
4.3.42(1)-release
shopt -s extdebug

However, in 4.4:

$ shopt -s extdebug; export BASHOPTS
$ bash -c 'echo $BASH_VERSION; shopt -p extdebug'
bash: /Users/levit/utils/stow/bash/share/bashdb/bashdb-main.inc: No such file or directory
bash: warning: cannot start debugger; debugging mode disabled
4.4.0(3)-rc2
shopt -u extdebug

reply via email to

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