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


Groups > gnu.bash.bug > #15324 > unrolled thread

Re: Associative array entries order differs from declaration

Started byChet Ramey <chet.ramey@case.edu>
First post2019-08-15 11:36 -0400
Last post2019-08-15 11:36 -0400
Articles 1 — 1 participant

Back to article view | Back to gnu.bash.bug

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Associative array entries order differs from declaration Chet Ramey <chet.ramey@case.edu> - 2019-08-15 11:36 -0400

#15324 — Re: Associative array entries order differs from declaration

FromChet Ramey <chet.ramey@case.edu>
Date2019-08-15 11:36 -0400
SubjectRe: Associative array entries order differs from declaration
Message-ID<mailman.171.1565883416.30381.bug-bash@gnu.org>

[Multipart message — attachments visible in raw view] — view raw

On 8/15/19 11:26 AM, Léa Gris wrote:
> While dealing with getting keys of arrays, I found out that associative
> array keys where not registered in the same order as declared:

There's no guarantee that will happen. It's a hash table.

-- 
``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/

[toc] | [standalone]


Back to top | Article view | gnu.bash.bug


csiph-web