bug-bash
[Top][All Lists]
Advanced

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

Tilde expansion bug in associative array assignments?


From: Marco
Subject: Tilde expansion bug in associative array assignments?
Date: Mon, 6 Feb 2023 13:33:50 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.7.1

I am seeing this potential regression on code checked out from https://git.savannah.gnu.org/git/bash.git at version ec8113b:

$ ./configure
$ make
$ echo "$BASH_VERSION"
5.2.15(1)-release

$ declare -A associative_array=([key]=~/Desktop)
$ ls -d "${associative_array[key]}"
ls: cannot access '~/Desktop': No such file or directory

but:

$ ls -d ~/Desktop
/home/marco/Desktop

On my previous version 5.1.4(1)-release the tilde expanded just fine.

Marco Ippolito
maroloccio@gmail.com



reply via email to

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