[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-bash] Order of element in associative array expansion

From: Greg Wooledge
Subject: Re: [Help-bash] Order of element in associative array expansion
Date: Thu, 17 Oct 2013 15:37:09 -0400
User-agent: Mutt/

> On 10/17/13 12:23 PM, Davide Brini wrote:
> > I know that the order of keys and values obtained by expanding an
> > associative array with "address@hidden" and "address@hidden" respectively is
> > unpredictable, which is fine.
> > 
> > However my question is: at a given point in time, without changes or other
> > operations happening in between, are the two expansions guaranteed to
> > return the keys in the same order as the respective values and viceversa?

I can't resist asking: why does it matter?  Under what circumstances
would you traverse these two lists independently, but wish to have them
match up properly?

Obfuscated programming contest?

reply via email to

[Prev in Thread] Current Thread [Next in Thread]