Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #14419

Re: segfault w/ localvar_inherit and associative array insert

From Chet Ramey <chet.ramey@case.edu>
Newsgroups gnu.bash.bug
Subject Re: segfault w/ localvar_inherit and associative array insert
Date 2018-07-30 09:36 -0400
Message-ID <mailman.4414.1532957822.1292.bug-bash@gnu.org> (permalink)
References <CAMu=BroMwXaqDTT3qusycRGRdXevmxiwC0RpR8+wGooo83pWgg@mail.gmail.com>

Show all headers | View raw


On 7/25/18 5:37 PM, Grisha Levit wrote:
> shopt -s localvar_inherit
> declare -A var
> f() { declare var+=([0]=X); }; f

This will generate an error about attempting to inherit a value from an
incompatible type.

Chet

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
		 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    chet@case.edu    http://tiswww.cwru.edu/~chet/

Back to gnu.bash.bug | Previous | Next | Find similar | Unroll thread


Thread

Re: segfault w/ localvar_inherit and associative array insert Chet Ramey <chet.ramey@case.edu> - 2018-07-30 09:36 -0400

csiph-web