Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
quotename() fix
- X-seq: zsh-workers 1143
- From: Zefram <A.Main@xxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxxx (Z Shell workers mailing list)
- Subject: quotename() fix
- Date: Thu, 23 May 1996 15:51:22 +0100 (BST)
-----BEGIN PGP SIGNED MESSAGE-----
Zoltan's patch in article 1098, reversing a hunk of my completion patch,
broke this:
% compctl -s foo^@bar baz
% baz _<TAB>
% baz foo| bar _
I had actually fixed this in the hunk that Zoltan reversed, but in
the wrong way, so that I broke completion on words containing tokens.
Here is the correct fix:
Index: Src/zle_tricky.c
*** zle_tricky.c 1996/05/23 11:40:56 1.17
--- zle_tricky.c 1996/05/23 12:27:12
***************
*** 1283,1289 ****
* pointer it points to may point to aposition in s and in e the position *
* of the corresponding character in the quoted string is returned. Like *
* e, te may point to a position in the string and pl is used to return *
! * the position of the character pointed to by te in the quoted string. */
/**/
char *
--- 1283,1290 ----
* pointer it points to may point to aposition in s and in e the position *
* of the corresponding character in the quoted string is returned. Like *
* e, te may point to a position in the string and pl is used to return *
! * the position of the character pointed to by te in the quoted string. *
! * The string is metafied and may contain tokens. */
/**/
char *
***************
*** 1319,1324 ****
--- 1320,1327 ----
continue;
} else
*v++ = '\\';
+ if(*u == Meta)
+ *v++ = *u++;
*v++ = *u;
}
*v = '\0';
-zefram
-----BEGIN PGP SIGNATURE-----
Version: 2.6.2
iQCVAwUBMaRaUHD/+HJTpU/hAQEicgP/SAztxmhGUQ8oSmdEiZ9VNXjUOslSSoAH
m35fd+5xX4MiMfR2NydXyQVz3eKEy9aF7k32aHiVT78GU39P2Lkvoq/8kakUwV6v
Dv+2iilrDn2GGYA66/z9rUIf49g/gQTAm/j7D9tYK/0lmvh4K7LXTWWH9xH7lpgB
qGUX13anynM=
=dhUG
-----END PGP SIGNATURE-----
Messages sorted by:
Reverse Date,
Date,
Thread,
Author