From: Bart Schaefer <schaefer@brasslantern.com>
To: Zsh hackers list <zsh-workers@zsh.org>
Subject: Re: get keys of an associative array?
Date: Sun, 26 Mar 2017 13:03:31 -0700 [thread overview]
Message-ID: <CAH+w=7YSv3th7qD9WFxrXrfuuCSGarbHZswTGW13JSHiY-irCQ@mail.gmail.com> (raw)
In-Reply-To: <20170326203446.45f5883e@ntlworld.com>
[-- Attachment #1: Type: text/plain, Size: 336 bytes --]
On Mar 26, 2017 12:41 PM, "Peter Stephenson" <p.w.stephenson@ntlworld.com>
wrote:
You need "${(k)A[@]}" in ksh mode, but I'm not sure why the (@) flag
doesn't do the trick.
The @ flag only makes things that are already arrays remain arrays in
contexts where they would otherwise be joined. In ksharrays context, ${A}
is a scalar.
next prev parent reply other threads:[~2017-03-26 20:03 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-26 19:18 Jens Elkner
2017-03-26 19:34 ` Peter Stephenson
2017-03-26 20:03 ` Bart Schaefer [this message]
2017-03-26 22:06 ` Jens Elkner
2017-03-27 8:36 ` Peter Stephenson
2017-03-26 21:55 ` Jens Elkner
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='CAH+w=7YSv3th7qD9WFxrXrfuuCSGarbHZswTGW13JSHiY-irCQ@mail.gmail.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).