Date: Fri, 15 Feb 2019 22:21:25 -0800
From: L A Walsh <[email protected]>
Message-ID: <[email protected]>
| Thought about that....restarted a fresh shell. Same same.
| At least I know it's supposed to...
It isn't just BASH_ALIASES - you'll see the same from lots of
other dynamic variables.
Try actually accessing an element, as in ...
jinx$ declare -p | grep BASH_A
declare -A BASH_ALIASES=()
declare -a BASH_ARGC=([0]="0")
declare -a BASH_ARGV=()
declare -- BASH_ARGV0
jinx$ echo ${BASH_ALIASES["ap"]}
addpath
jinx$ declare -p | grep BASH_A
declare -A BASH_ALIASES=()
declare -a BASH_ARGC=([0]="0")
declare -a BASH_ARGV=()
declare -- BASH_ARGV0
On occasion, the output from declare will show all the
aliases in BASH_ALIASES but I have no idea what sequence of
commands, of state of the universe, causes that to happen.
Nor do I care, if I want to know what aliases I have, the "alias"
command tells me that.
kre