[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Segfault on compound assignment to a variable whose name is set in t
From: |
Chet Ramey |
Subject: |
Re: Segfault on compound assignment to a variable whose name is set in the environment of a declaration builtin. |
Date: |
Wed, 30 May 2012 22:17:21 -0400 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:11.0) Gecko/20120327 Thunderbird/11.0.1 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 5/18/12 2:08 PM, Dan Douglas wrote:
> Hi Chet, segfault occurs during array assignment if an attempt is made to
> modify a
> variable of the same name from the environment. It appears to only occur in
> the global scope.
> I imagine the expected result should be either an error, or to evaluate in a
> mannar similar to
> `x=1 let "x[x++]=x"', for example.
Thanks for the report. It only happens in an arithmetic expression
context.
> Thanks again. (not overly anxious for a fix.)
OK, it will be fixed in the next release.
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 v1.4.11 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAk/G1KkACgkQu1hp8GTqdKvsdQCeM8MTYW5WM+XbWs6JQ4xIL8le
WjEAnjwBOzLpjUF8XbpzZNRNuwU+Fth4
=1m7x
-----END PGP SIGNATURE-----