From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15442 invoked by alias); 17 Nov 2013 05:34:42 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 31995 Received: (qmail 16225 invoked from network); 17 Nov 2013 05:34:35 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.2 Date: Sun, 17 Nov 2013 13:24:23 +0800 From: Han Pingtian To: zsh-workers@zsh.org Subject: [PATCH] don't treat alone grouping pattern as glob qualifier Message-ID: <20131117052423.GA20827@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 13111705-1542-0000-0000-0000035C32CF Hello, I think this is a minor bug: % ls a sym1 sym2 sym3 sym4 testfile % print (s*) zsh: no match % Looks like the alone grouping pattern (s*) is treated as qualifier. And I have figured out a patch which looks like fixes the issue. Please have a look. Thanks. --- Src/glob.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/Src/glob.c b/Src/glob.c index e0d0cf6..385b9e6 100644 --- a/Src/glob.c +++ b/Src/glob.c @@ -1171,7 +1171,7 @@ zglob(LinkList list, LinkNode np, int nountok) break; } } - if (*s != Inpar) + if (*s != Inpar || s == str) break; if (isset(EXTENDEDGLOB) && !zpc_disables[ZPC_HASH] && s[1] == Pound) { if (s[2] == 'q') { -- 1.7.7.6