bug-bash
[Top][All Lists]
Advanced

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

quoted compound array assignment deprecated


From: isabella parakiss
Subject: quoted compound array assignment deprecated
Date: Mon, 17 Aug 2015 10:19:00 +0200

Quoting is necessary in a few cases:

$ var=foo; declare -A "arr$var=([x]=y)"
bash: warning: arrfoo=([x]=y): quoted compound array assignment deprecated
$ var=foo; declare -A arr$var=([x]=y)
bash: syntax error near unexpected token `('
$ var=foo; declare -A "arr$var"=([x]=y)
bash: syntax error near unexpected token `('

I don't think this should be the default behaiour...


---
xoxo iza



reply via email to

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