zsh-workers
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: Sebastian Gniazdowski <psprint@zdharma.org>
Cc: "zsh-workers@zsh.org" <zsh-workers@zsh.org>
Subject: Re: 5.3.1-dev-0 difference in array=( "${(PA@)var_name}" )
Date: Wed, 14 Jun 2017 23:10:18 -0700	[thread overview]
Message-ID: <CAH+w=7ZELfE9ZVxr5JgZNm6s7xZo0kTurYvsf+R0w_PrApfH-A@mail.gmail.com> (raw)
In-Reply-To: <etPan.59422316.79e2a9e3.8fd5@MacMini.local>

On Wed, Jun 14, 2017 at 11:03 PM, Sebastian Gniazdowski
<psprint@zdharma.org> wrote:
> On 14-06-2017 at 22:35:51, Bart Schaefer (schaefer@brasslantern.com) wrote:
>>
>> So in the above example ${(P)var_name} returns a scalar and the (@)
>> flag is also meaningless. In this next example --
>
> I think @ has an actual effect:

Well, yes, it has an effect if $abcdef is already an array (as in your
new example).  It has no effect if $abcdef is unset (as in your
original example) or is a scalar.


      reply	other threads:[~2017-06-15  6:10 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-14 17:09 Sebastian Gniazdowski
2017-06-14 20:35 ` Bart Schaefer
2017-06-15  6:03   ` Sebastian Gniazdowski
2017-06-15  6:10     ` Bart Schaefer [this message]

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=7ZELfE9ZVxr5JgZNm6s7xZo0kTurYvsf+R0w_PrApfH-A@mail.gmail.com' \
    --to=schaefer@brasslantern.com \
    --cc=psprint@zdharma.org \
    --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).