From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh-workers@zsh.org
Subject: Properties of special hashes in zsh/parameter module
Date: Sat, 26 Sep 2015 15:29:21 -0700 [thread overview]
Message-ID: <150926152921.ZM17972@torch.brasslantern.com> (raw)
Some of the special parameters in zsh/parameter are referenced as read-only
hashes. The normal properties of assocative arrays imply that if you refer
to all the values in one of these hashes, e.g. ${history[*]}, that they may
be returned in any order.
In practice these special hashes don't use a hash table implementation and
the order of values is guaranteed to be fixed, and in the case of $history
are guaranteed to be in the same order as $(history -rn 1).
Should we document this and make it a reliable condition for scripting? Or
do we prefer to keep open the option of implementing atop an unordered hash
at some point in the future?
next reply other threads:[~2015-09-26 22:29 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-26 22:29 Bart Schaefer [this message]
2015-09-28 8:30 ` Peter Stephenson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=150926152921.ZM17972@torch.brasslantern.com \
--to=schaefer@brasslantern.com \
--cc=zsh-workers@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).