zsh-workers
 help / color / mirror / code / Atom feed
From: Michael Hwang <michael.a.hwang@gmail.com>
To: zsh-workers@zsh.org
Subject: Re: [PATCH]: Revamped (P) expansion flag
Date: Tue, 5 Jan 2010 17:52:47 -0500	[thread overview]
Message-ID: <22a0ef081001051452g4066b985nef6ac1e9a60e4de9@mail.gmail.com> (raw)
In-Reply-To: <20100105172012.3f1d628c@news01>

On Tue, Jan 5, 2010 at 12:20 PM, Peter Stephenson <pws@csr.com> wrote:
> With the two patches I know about (the second a single line), the test
> suite now fails at this test in D06subscript.ztst:

On Sat, Dec 26, 2009 at 5:48 PM, Michael Hwang
<michael.a.hwang@gmail.com> wrote:
> On the more buggy-ish side:
>
> % STRING='zsh is awesome!'
> % STR='zsh sucks... :-/'
> % REF=STRING
> % print ${(P)REF[1,3]}
> zsh sucks... :-/
>
> As ${(P)REF} is really ${(P)${REF}}, one would think that that
> ${(P)REF[1,3]} would be expanded as ${(P)${REF}[1,3]}. But as you can
> see, it is instead expanded as ${(P)${REF[1,3]}}.

I believe that the behavior that test relies on should be considered a
bug. What do you think?

Michael Hwang


  reply	other threads:[~2010-01-05 22:53 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-26 22:48 Michael Hwang
2009-12-27  0:59 ` Michael Hwang
2009-12-28  0:57   ` Michael Hwang
2010-01-05 17:20 ` Peter Stephenson
2010-01-05 22:52   ` Michael Hwang [this message]
2010-01-06  9:48     ` Peter Stephenson
2010-01-06 15:23     ` Bart Schaefer
2010-01-01 16:35 Michael Hwang

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=22a0ef081001051452g4066b985nef6ac1e9a60e4de9@mail.gmail.com \
    --to=michael.a.hwang@gmail.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).