bug-bash
[Top][All Lists]
Advanced

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

Re: in bash 4.4.12,want to verify a behavior...


From: Robert Elz
Subject: Re: in bash 4.4.12,want to verify a behavior...
Date: Sat, 16 Feb 2019 19:57:56 +0700

    Date:        Fri, 15 Feb 2019 22:21:25 -0800
    From:        L A Walsh <address@hidden>
    Message-ID:  <address@hidden>

  |     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




reply via email to

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