|
| 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 |
$ ./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
| [Prev in Thread] | Current Thread | [Next in Thread] |