From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh-workers@zsh.org
Subject: Re: Stack overflow with extended globs
Date: Sat, 16 Mar 2013 11:32:26 -0700 [thread overview]
Message-ID: <130316113226.ZM22610@torch.brasslantern.com> (raw)
In-Reply-To: <87ehffjolk.fsf@gmail.com>
On Mar 16, 5:28pm, Christian Neukirchen wrote:
}
} juno% setopt extendedglob; echo *(#c3,)x*
}
} Program received signal SIGSEGV, Segmentation fault.
I think we want either this:
Index: Src/pattern.c
===================================================================
--- pattern.c 21 Dec 2010 16:41:16 -0000
+++ pattern.c 16 Mar 2013 18:21:36 -0000
@@ -1474,7 +1474,7 @@
}
/* too much at once doesn't currently work */
- if (kshchar && pound)
+ if (kshchar && (pound || count))
return 0;
if (kshchar == '*') {
Or this:
Index: Src/pattern.c
===================================================================
--- pattern.c 21 Dec 2010 16:41:16 -0000
+++ pattern.c 16 Mar 2013 18:23:53 -0000
@@ -1474,7 +1474,7 @@
}
/* too much at once doesn't currently work */
- if (kshchar && pound)
+ if (kshchar && pound || kshchar < 0 && count)
return 0;
if (kshchar == '*') {
But I'm not sure which. I tend to think the former.
prev parent reply other threads:[~2013-03-16 18:33 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-16 16:28 Christian Neukirchen
2013-03-16 18:32 ` Bart Schaefer [this message]
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=130316113226.ZM22610@torch.brasslantern.com \
--to=schaefer@brasslantern.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).