Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: zsh bug report -



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