[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: get back the expansion of ~ in associated array
From: |
Grisha Levit |
Subject: |
Re: get back the expansion of ~ in associated array |
Date: |
Mon, 17 Jul 2023 03:26:41 -0400 |
On Mon, Jul 17, 2023, 01:18 Peng Yu <pengyu.ut@gmail.com> wrote:
> Hi,
>
> In old bash, ~ can be expanded in an associated array.
>
> $ bash --version | head -n 1
> GNU bash, version 5.1.8(1)-release (x86_64-apple-darwin18.7.0)
> $ declare -A x=([a]=~)
> $ declare -p x
> declare -A x=([a]="/Users/py" )
>
> In new bash, ~ can be not expanded in an associated array. How to get
> back the original behavior?
>
It's back in bash-5.3.
>