delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2017/01/13/15:00:38

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:from:reply-to:to:subject:message-id:date
:mime-version:content-type:content-transfer-encoding; q=dns; s=
default; b=IZ0xpqCLaNzr/Aqdr0OxCXevRYb5toAWlCqm/ZlAUNRMYFe/cWD7e
rdXdbhKf2Tr5hZAcFZsGTbU60f7cCYS3hPJt0DKFbIzk1wA/I9Ojm+Yq6LpLJOOZ
GaxCeGAZtKc4mBjLD3xtWVyGxVtJdbWDC00BJ0eL7GY1+AMqlWtt2I=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:from:reply-to:to:subject:message-id:date
:mime-version:content-type:content-transfer-encoding; s=default;
bh=q82XqGQoJlZYmJ8BNuToROalxdg=; b=Nux8bODcklauEgrJnc4+m+hhu3PE
SyN+cvwnkWZBBrekYasTbqHIDLkFdWKTyZSm1aafISA5Zr+VAm6I4qu00pTG+ZQz
0eXRjSVO31OTU0hoxxBI2/XjM9Tuom5CJKlCVBmiuHMGG5Qx4XUm0XryofaxFEhT
U/SjKUZ5sIrFZ7A=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-2.1 required=5.0 tests=BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RCVD_IN_SORBS_SPAM,SPF_PASS autolearn=ham version=3.3.2 spammy=CentOS
X-HELO: mail-pf0-f196.google.com
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:reply-to:to:subject:message-id:date :user-agent:mime-version:content-transfer-encoding; bh=bJNP0IwEfGon8apZZCV5PAaU2Wp7gGvQ9I5WEy5cq84=; b=s1PwY8i6dgc9pBToOAAZCFAFNRtan2oZWR/zgJJp8XjwPNLyyBsodhsNImJ1kE6JJX /SzuuinoevFh2jc3oCOt7GSRbJXI7ibryN+XU2Eq15fpL6WBtigs6+H3G7fKjEGUmsSa WfI74tNtgNkXsffvPQg09+D1DUz4PhpAIrYA9O+G7hEUnAjR2F4Q+98UaTqmyYi3p6pG w7GUAkP2o+0I4iM9rPqjStVgXr3jrC7ws6COV1H8f5D4QcrRqERlsujCNriA5fSR0tTw 7bgjELGSNrIfyssvIEdsoEQvIl8LPFSey/pcEspSfHhfYin/ua5XzbiAHXzHYPGEEnbN wWwQ==
X-Gm-Message-State: AIkVDXIL4bbKyyztyPQYd/J8fQQQ/VMVyhJYl7+t4TH58yDZaugogFnY+uwTdi9oxfrhMg==
X-Received: by 10.98.56.196 with SMTP id f187mr24826774pfa.131.1484337602657; Fri, 13 Jan 2017 12:00:02 -0800 (PST)
From: "Matt D." <matt AT codespunk DOT com>
X-Google-Original-From: "Matt D." <codespunk+cygwin AT gmail DOT com>
Reply-To: codespunk+cygwin AT gmail DOT com
To: cygwin AT cygwin DOT com
Subject: Bash declare built-in regression loses array quotations
Message-ID: <587931C1.5060509@gmail.com>
Date: Fri, 13 Jan 2017 15:00:01 -0500
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0
MIME-Version: 1.0

I updated yesterday to the latest Cygwin x86 release which included an 
updated Bash 4.4.5(1). This release changes the default behavior of the 
built-in 'declare' command which is causing scripts which relied on this 
functionality to break.

The following test will illustrate the change:
declare -A list
list[a]=1
list[b]=2
list[c]=3
declare -p | grep list=

On Bash 4.4.5(1) the output is:
declare -A list=([a]="1" [b]="2" [c]="3" )

Previously the result was:
declare -A list='([a]="1" [b]="2" [c]="3" )'

I can confirm that this has always been the expected output when running 
this command on Cygwin and Linux. I run CentOS which does not track the 
latest Bash release and I don't know the procedure to check whether this 
is an upstream regression or not.

I have rolled back to Bash 4.3.48-8 which has restored the previous 
functionality.

Please advise.

Matt D.

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019