Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: quote separators when using vared on array.
- X-seq: zsh-workers 12415
- From: Peter Stephenson <pws@xxxxxxxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx (Zsh hackers list)
- Subject: Re: PATCH: quote separators when using vared on array.
- Date: Thu, 27 Jul 2000 22:59:50 +0100
- In-reply-to: "Peter Stephenson"'s message of "Thu, 27 Jul 2000 18:40:09 BST." <0FYD00KQLAEWE6@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
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