[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 <bash@tlinx.org>
> Message-ID: <5C67ABE5.1030407@tlinx.org>
>
> | 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 chet@case.edu http://tiswww.cwru.edu/~chet/
- 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, 2019/02/16
- 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 <=
Re: in bash 4.4.12,want to verify a behavior..., Chet Ramey, 2019/02/17