On 2/17/2019 2:19 PM, Dennis Williamson wrote:
>
>     So it really is a bug of some sort, not that I use BASH ALIASES
>     for anything.  Was going to, but ...  and you're right, lots of
>     things aren't showing there.
>
>
>      
>
> Have you tried starting Bash without any startup files, creating an
> alias and then checking the array?
yes.  Just now.
out of 14 vars starting with BASH
only BASHOPTS is different in the clean startup.
In a 'normal'[?] startup, there are 3 extra vars starting with BASH_:

BASH_COMPLETION_COMPAT_DIR
BASH_ENV (I set this, but unset it for this test)
BASH_REMATCH

then bash (type -p says /bin/bash)
 --noprofile --norc

Version would be same, and the debug related would be blank, but
hmmm....
declare -A BASH_CMDS=()  (command hashing?)

most of the BASH vars show no value (exception of
version-related, BASH=/bin/bash & "BASHOPTS", but they
DO have a value.  If I print it in the shell instead
of using declare -p I see stuff.









Reply via email to