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: Chet Ramey
Subject: Re: in bash 4.4.12,want to verify a behavior...
Date: Sun, 17 Feb 2019 21:58:47 -0500
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:60.0) Gecko/20100101 Thunderbird/60.5.0

On 2/16/19 7:57 AM, Robert Elz wrote:
>     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

$ declare -p | grep BASH_ALI
declare -A BASH_ALIASES=()
$ echo ${BASH_ALIASES[m]}
mv
$ declare -p | grep BASH_ALI
declare -A BASH_ALIASES=([jl]="jobs -l" [functions]="typeset -f"
[ll]="/bin/ls -lF" [dir]="/bin/ls -balF" [news]="aterm -g 110x45 -title trn
-e trn -e -S1 -N &" [lsc]="ls -C" [r]="fc -e -" [more]="less" [m]="mv"
[nohup]="nohup " [j]="jobs" [integer]="typeset -i" [ss]="ps -aux"
[h]="history 24" [ls]="/bin/ls -F" [errno]="perl -e '\$! = shift;print
\"\$!\\n\";'" [c]="clear" [lt]="ll -t" )


-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    address@hidden    http://tiswww.cwru.edu/~chet/



reply via email to

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