Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > gnu.bash.bug > #11359
| Path | csiph.com!au2pb.net!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!news.ripco.com!news.glorb.com!usenet.stanford.edu!not-for-mail |
|---|---|
| From | isabella parakiss <izaberina@gmail.com> |
| Newsgroups | gnu.bash.bug |
| Subject | quoted compound array assignment deprecated |
| Date | Mon, 17 Aug 2015 10:19:00 +0200 |
| Lines | 15 |
| Approved | bug-bash@gnu.org |
| Message-ID | <mailman.8466.1439799545.904.bug-bash@gnu.org> (permalink) |
| NNTP-Posting-Host | lists.gnu.org |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=UTF-8 |
| X-Trace | usenet.stanford.edu 1439799545 10187 208.118.235.17 (17 Aug 2015 08:19:05 GMT) |
| X-Complaints-To | action@cs.stanford.edu |
| To | bug-bash <bug-bash@gnu.org> |
| Envelope-to | bug-bash@gnu.org |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=faSsiOJAtZ+Vhzo/zKFzQrNx8T5I9rx1wSfG8lDCkKc=; b=FsIGPRenJuegH7zePnctWXQC2fzPVz8kaZJYsWBl8sgQA1QCHAUdcUtTXWV1V5Pf8K 25hWdIXoItFu/IgUina3YfKR+jSwbvoE7tq8GSPo0XUc3TyY4R016k7Lh+9ZGnjCP1g1 CWLpc28xY+/HBRIC7fn6X8NSmSenoNWxWu28HXMr73OPzt5RhW//qWFZA/AIOH2BkbLR O96pQ/86oQv8mxNVLRuE22TA6nQSnEmQgTJxmmPw402/xGarFMOkic7YjufMmBZvC/cd iqDbuFgLY6SOZ4pfPO7DzjIavYzSUFLoYE3eLIxo8MlsPB9iTT5L/O9ADzIMStAES+Vk IOag== |
| X-Received | by 10.107.163.11 with SMTP id m11mr180013ioe.31.1439799540597; Mon, 17 Aug 2015 01:19:00 -0700 (PDT) |
| X-detected-operating-system | by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). |
| X-Received-From | 2607:f8b0:4001:c06::234 |
| X-BeenThere | bug-bash@gnu.org |
| X-Mailman-Version | 2.1.14 |
| Precedence | list |
| List-Id | Bug reports for the GNU Bourne Again SHell <bug-bash.gnu.org> |
| List-Unsubscribe | <https://lists.gnu.org/mailman/options/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=unsubscribe> |
| List-Archive | <http://lists.gnu.org/archive/html/bug-bash> |
| List-Post | <mailto:bug-bash@gnu.org> |
| List-Help | <mailto:bug-bash-request@gnu.org?subject=help> |
| List-Subscribe | <https://lists.gnu.org/mailman/listinfo/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=subscribe> |
| Xref | csiph.com gnu.bash.bug:11359 |
Show key headers only | View raw
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
Back to gnu.bash.bug | Previous | Next | Find similar
quoted compound array assignment deprecated isabella parakiss <izaberina@gmail.com> - 2015-08-17 10:19 +0200
csiph-web