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

Re: PATCH: 3.1.6-pws-4: backreferences



Sven Wischnowsky wrote:
> I've run out of sync, then, because I get it too. And no wonder, in
> subst.c:1291 replstr is still unconditionally singsub()ed

Looks like I forgot to send the subst.c chunks for the patch.

--- Src/subst.c.old	Wed Sep 15 15:50:07 1999
+++ Src/subst.c	Tue Sep 14 13:19:57 1999
@@ -242,7 +242,7 @@
 }
 
 /* Perform substitution on a single word. Unlike with singsub, the      *
- * result can have more than one word. A single word result is sorted   *
+ * result can have more than one word. A single word result is stored   *
  * in *s and *isarr is set to zero; otherwise *isarr is set to 1 and    *
  * the result is stored in *a. If `a' is zero a multiple word result is *
  * joined using sep or the IFS parameter if sep is zero and the result  *
@@ -1288,8 +1288,6 @@
 		if (*ptr == '\\' && ptr[1] == '/')
 		    chuck(ptr);
 	    replstr = (*ptr && ptr[1]) ? ptr+1 : "";
-	    singsub(&replstr);
-	    untokenize(replstr);
 	    *ptr = '\0';
 	}
 

-- 
Peter Stephenson <pws@xxxxxxxxxxxxxxxxx>       Tel: +39 050 844536
WWW:  http://www.ifh.de/~pws/
Dipartimento di Fisica, Via Buonarroti 2, 56127 Pisa, Italy



Messages sorted by: Reverse Date, Date, Thread, Author