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

Re: PATCH: quote separators when using vared on array.



Peter Stephenson wrote:
> we'll wait for some schmuck to fix it

One day I'm going to learn to programme.  (This version actually tested
with nulls as separators.)

Index: Src/utils.c
===================================================================
RCS file: /cvsroot/zsh/zsh/Src/utils.c,v
retrieving revision 1.12
diff -u -r1.12 utils.c
--- Src/utils.c	2000/07/27 17:48:48	1.12
+++ Src/utils.c	2000/07/27 21:57:43
@@ -1901,6 +1901,8 @@
 	    if (quote && *t == '\\' &&
 		isep(t[1] == Meta ? (t[2] ^ 32) : t[1])) {
 		chuck(t);
+		if (*t == Meta)
+		    t++;
 		continue;
 	    }
 	    if (*t == Meta) {

-- 
Peter Stephenson <pws@xxxxxxxxxxxxxxxxxxxxxxxx>
Work: pws@xxxxxxxxxxxxxxxxxxxxxxxxx
Web: http://www.pwstephenson.fsnet.co.uk



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