[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: get back the expansion of ~ in associated array
From: |
Peng Yu |
Subject: |
Re: get back the expansion of ~ in associated array |
Date: |
Mon, 17 Jul 2023 06:30:42 -0500 |
ftp://ftp.gnu.org/gnu/bash/
I don’t see 5.3.
On Mon, Jul 17, 2023 at 2:26 AM Grisha Levit <grishalevit@gmail.com> wrote:
>
>
> 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.
>
>> --
Regards,
Peng