Path: csiph.com!xmission!news.glorb.com!usenet.stanford.edu!not-for-mail From: Chet Ramey Newsgroups: gnu.bash.bug Subject: Re: quoted compound array assignment deprecated Date: Wed, 19 Aug 2015 09:28:18 -0400 Lines: 68 Approved: bug-bash@gnu.org Message-ID: References: <55D34682.9000704@case.edu> <20150819034126.GV1584@vapier> Reply-To: chet.ramey@case.edu NNTP-Posting-Host: lists.gnu.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------020502080606090807000302" X-Trace: usenet.stanford.edu 1439990910 23872 208.118.235.17 (19 Aug 2015 13:28:30 GMT) X-Complaints-To: action@cs.stanford.edu Cc: chet.ramey@case.edu To: isabella parakiss , bug-bash Envelope-to: bug-bash@gnu.org X-Enigmail-Draft-Status: N1110 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:38.0) Gecko/20100101 Thunderbird/38.0.1 In-Reply-To: <20150819034126.GV1584@vapier> X-Junkmail-Status: score=10/50, host=mpv6.cwru.edu X-Junkmail-Whitelist: YES (by domain whitelist at mpv2.tis.cwru.edu) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 129.22.105.37 X-BeenThere: bug-bash@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Bug reports for the GNU Bourne Again SHell List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com gnu.bash.bug:11394 This is a multi-part message in MIME format. --------------020502080606090807000302 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 8/18/15 11:41 PM, Mike Frysinger wrote: > just to double check, the warning from this code is expected ? > > $ bash-4.3 -c 'declare -a foo=(a b c); export foo; declare -p foo' > declare -ax foo='([0]="a" [1]="b" [2]="c")' > $ bash-4.4 -c "declare -a foo='(a b c)'" > bash-4.4: warning: foo=(a b c): quoted compound array assignment deprecat ed Yes. It may not last into the final bash-4.4 release. > we see this in Gentoo because we save/restore build envs via bash. so al l > builds done w/bash-4.3 and older use the quoted syntax, so updating with > bash-4.4 in the system triggers these warnings. we can adjust our toolin g > to handle it, but would be nice if older bash didn't do it either. maybe > send out a 4.3-p43 ? ;) I'd rather people experiment with it first. It changes a bunch of test output, so a patch would be pretty extensive. I've attached a patch for you to try with Gentoo. Chet - -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, ITS, CWRU chet@case.edu http://cnswww.cns.cwru.edu/~chet/ -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iEYEARECAAYFAlXUhGQACgkQu1hp8GTqdKsJhwCfTKaj3GXe7U2RVtWrNdfwGZd5 cHoAn0SBXhfrI1npA/e+0Los5Eh5fO7p =8f/u -----END PGP SIGNATURE----- --------------020502080606090807000302 Content-Type: application/x-patch; name="print-array-assignment.patch" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="print-array-assignment.patch" KioqIC4uL2Jhc2gtNC4zLjQyL2J1aWx0aW5zL3NldGF0dHIuZGVmCTIwMTQtMDEtMDkgMTE6 MzQ6MzUuMDAwMDAwMDAwIC0wNTAwCi0tLSBidWlsdGlucy9zZXRhdHRyLmRlZgkyMDE1LTA4 LTE5IDA5OjE0OjAwLjAwMDAwMDAwMCAtMDQwMAoqKioqKioqKioqKioqKioKKioqIDQyNyw0 MzMgKioqKgogICNpZiBkZWZpbmVkIChBUlJBWV9WQVJTKQogICAgaWYgKGFycmF5X3AgKHZh cikpCiEgICAgIHByaW50X2FycmF5X2Fzc2lnbm1lbnQgKHZhciwgMSk7CiAgICBlbHNlIGlm IChhc3NvY19wICh2YXIpKQohICAgICBwcmludF9hc3NvY19hc3NpZ25tZW50ICh2YXIsIDEp OwogICAgZWxzZQogICNlbmRpZgotLS0gNDI3LDQzMyAtLS0tCiAgI2lmIGRlZmluZWQgKEFS UkFZX1ZBUlMpCiAgICBpZiAoYXJyYXlfcCAodmFyKSkKISAgICAgcHJpbnRfYXJyYXlfYXNz aWdubWVudCAodmFyLCAwKTsKICAgIGVsc2UgaWYgKGFzc29jX3AgKHZhcikpCiEgICAgIHBy aW50X2Fzc29jX2Fzc2lnbm1lbnQgKHZhciwgMCk7CiAgICBlbHNlCiAgI2VuZGlmCg== --------------020502080606090807000302--