[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: in bash 4.4.12,want to verify a behavior...
From: |
Dennis Williamson |
Subject: |
Re: in bash 4.4.12,want to verify a behavior... |
Date: |
Fri, 15 Feb 2019 23:32:07 -0600 |
On Fri, Feb 15, 2019, 10:46 PM L A Walsh <bash@tlinx.org wrote:
>
> I printed the various declares using:
>
> declare -p |& more
>
> One of the early entries is:
>
> declare -A BASH_ALIASES=()
>
> Yet if I type 'alias |& wc, I see 56 lines starting with alias.
>
> I _thought_ BASH_ALIASES was suppose to hold the aliases
> and for an "alias whence='type -a'", I should see something like
> declare -A BASH_ALIASES=([whence]='type -a ...) instead of
> the empty assignment above.
>
> Am I misunderstanding or missing something?
>
> I'm assuming ("guessing?") that other people see
> their aliases in
> BASH_ALIASES?
>
> Am trying to figure out where I should start looking for why
> this isn't set, but wanted to make sure my understanding of
> of this feature was correct.
>
> Thanks!
> -linda
>
>
>
>
It's likely that somewhere your BASH_ALIASES has been unset. See the manual
section quoted here:
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
<https://www.gnu.org/software/bash/manual/bash.html#Bourne-Shell-Builtins>).
Elements added to this array appear in the alias list; however, unsetting
array elements currently does not cause aliases to be removed from the
alias list. If BASH_ALIASES is unset, it loses its special properties, even
if it is subsequently reset.
>
- in bash 4.4.12,want to verify a behavior..., L A Walsh, 2019/02/15
- Re: in bash 4.4.12,want to verify a behavior...,
Dennis Williamson <=
- Re: in bash 4.4.12,want to verify a behavior..., L A Walsh, 2019/02/16
- Re: in bash 4.4.12,want to verify a behavior..., Robert Elz, 2019/02/16
- Re: info missing in output of declare -a in 4.4.x, L A Walsh, 2019/02/17
- Re: info missing in output of declare -a in 4.4.x, Dennis Williamson, 2019/02/17
- Re: info missing in output of declare -a in 4.4.x, L A Walsh, 2019/02/17
- Re: info missing in output of declare -a in 4.4.x, Dennis Williamson, 2019/02/17
- Re: info missing in output of declare -a in 4.4.x, Andreas Schwab, 2019/02/18
- Re: in bash 4.4.12,want to verify a behavior..., Chet Ramey, 2019/02/17
Re: in bash 4.4.12,want to verify a behavior..., Chet Ramey, 2019/02/17