I've just recognized that (in Debian 7, within Bash 4.2.37) the output of BASH_ALIASES
isn't equal to that of alias
– which, according to gnu.org's Bash Manual, should be the case:
BASH_ALIASES
An associative array variable whose members correspond to the internal list of aliases as maintained by the alias builtin. (see Bourne Shell Builtins). Elements added to this array appear in the alias list; unsetting array elements cause aliases to be removed from the alias list.
I get ls='ls --color=auto'
for alias
but an empty line for BASH_ALIASES
.
Question:
Should it be that way? Could this cause any problems in the future?
As I am just curious and battling with all the options for each command causing me enough headache so I really keep quite a distance from making things even more complicated with homebrew aliases, I wonder if this could be a source of trouble in the near future…