zsh-workers
 help / color / mirror / code / Atom feed
* Recent regression on (N) after removing array element
@ 2013-11-19 17:08 Vin Shelton
  2013-11-19 17:52 ` Peter Stephenson
  0 siblings, 1 reply; 4+ messages in thread
From: Vin Shelton @ 2013-11-19 17:08 UTC (permalink / raw)
  To: zsh-workers

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-11-20 17:33 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-11-19 17:08 Recent regression on (N) after removing array element Vin Shelton
2013-11-19 17:52 ` Peter Stephenson
2013-11-19 18:02   ` Bart Schaefer
2013-11-20 17:33     ` Peter Stephenson

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).