zsh-workers
 help / color / mirror / code / Atom feed
From: Vin Shelton <acs@alumni.princeton.edu>
To: zsh-workers@zsh.org
Subject: Recent regression on (N) after removing array element
Date: Tue, 19 Nov 2013 12:08:04 -0500	[thread overview]
Message-ID: <CACeGjnVEwGUifeGZFEjfwzAuNOY5UF9UVaNn_AFELycABeQEWA@mail.gmail.com> (raw)

This used to work:

x=( /bin /foo )
x[(r)/foo]=''
x=( $^x(N) )

but the last line now yields an error:
zsh: no matches found: (N)

If I remove this recent change to Src/glob.c, (N) works correctly:

--- /opt/src/zsh-2013-11-17/Src/glob.c 2013-09-23 18:01:42.000000000 -0400
+++ /opt/src/zsh-2013-11-19/Src/glob.c 2013-11-19 10:22:39.000000000 -0500
@@ -1171,7 +1171,7 @@
  break;
     }
  }
- if (*s != Inpar)
+ if (*s != Inpar || s == str)
     break;
  if (isset(EXTENDEDGLOB) && !zpc_disables[ZPC_HASH] && s[1] == Pound) {
     if (s[2] == 'q') {


Sincerely,
  Vin


             reply	other threads:[~2013-11-19 17:08 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-19 17:08 Vin Shelton [this message]
2013-11-19 17:52 ` Peter Stephenson
2013-11-19 18:02   ` Bart Schaefer
2013-11-20 17:33     ` 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=CACeGjnVEwGUifeGZFEjfwzAuNOY5UF9UVaNn_AFELycABeQEWA@mail.gmail.com \
    --to=acs@alumni.princeton.edu \
    --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).