Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: zsh bug report -
- X-seq: zsh-workers 34837
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: "pdysonuk@xxxxxxxxx" <pdysonuk@xxxxxxxxx>, zsh-workers@xxxxxxx
- Subject: Re: zsh bug report -
- Date: Thu, 2 Apr 2015 09:36:36 -0700
- In-reply-to: <89570CE0-6F0E-423D-B42F-D1C289C5AB1D@gmail>
- 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
- References: <89570CE0-6F0E-423D-B42F-D1C289C5AB1D@gmail>
On Apr 2, 1:59pm, pdysonuk@xxxxxxxxx wrote:
}
} Please could you let me know if this is actually a bug or is it my
} lack of understanding in using zsh?
It's actually a bug, and a fairly silly one at that.
diff --git a/Src/glob.c b/Src/glob.c
index 33facde..ad29223 100644
--- a/Src/glob.c
+++ b/Src/glob.c
@@ -386,8 +386,8 @@ insert(char *s, int checked)
while (!inserts || (news = dupstring(*inserts++))) {
if (colonmod) {
/* Handle the remainder of the qualifier: e.g. (:r:s/foo/bar/). */
- s = colonmod;
- modify(&news, &s);
+ char *mod = colonmod;
+ modify(&news, &mod);
}
if (!statted && (gf_sorts & GS_NORMAL)) {
statfullpath(s, &buf, 1);
Messages sorted by:
Reverse Date,
Date,
Thread,
Author