Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Recent regression on (N) after removing array element
- X-seq: zsh-workers 32025
- From: Vin Shelton <acs@xxxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Recent regression on (N) after removing array element
- Date: Tue, 19 Nov 2013 12:08:04 -0500
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:date:message-id:subject:from:to:content-type; bh=oWxzddUnIAMqXUXBiHD/u/rKpINDO5NwFzHR2t3RUkw=; b=SGduVhagmaSpvh6nzchcSEkzvdpxVhtMUfT2jiS+G5s4CFuhTcoNEJrPfex8UsL8R/ hKBLtvO3/ueBJvOW5c6p8lRePfiymIyCoHiMyMTCf87quFRWDHzkX+hZwSfBIG0jfZ0i GcYcJB15PiQSQpZuo0GUyOLAIRErilDvaCiZgqTchiFAWpp2DvrWG4hAdvcl4zDzliFG s4pBHkhkYZUcYTKU/ZLzLTo6fwk13KX2TuwNSev/Qw/kUgkEmeiacvx73WNiohpmg+y+ NqQOt8Ue9kCyG3gqVd+xFK3l1iJD2TGNGK/pbotEn5n8lghIvOmZcqR4j453/Zft28A5 a7VA==
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- Sender: ethersoft@xxxxxxxxx
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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author