On 2/6/23 7:33 AM, Marco wrote:
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

Thanks for the report. The key should be tilde-expanded and the RHS of
the assignment should be tilde expanded as in assignment statements (there
is a subtle difference).

--
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    c...@case.edu    http://tiswww.cwru.edu/~chet/


Reply via email to