On v, jún 02, 2013 at 20:02:17 -0400, Ted Unangst wrote:
> (1) I'm in src/usr.sbin/pkg_add. I type "vi pod/<tab>". ksh prints some
> completions for me:
>
> athens:~/src/usr.sbin/pkg_add> vi pod/
> CVS/ OpenBSD::PackingElement.pod ...
>
> (2) I type "Open<tab>". ksh completes a little more for me:
> athens:~/src/usr.sbin/pkg_add> vi pod/OpenBSD::
[...]
> If ksh is going to treat : as magic, then it needs to escape it when
> autocompleting. (step 2 above)
I've fixed it with this:
--- edit.c.orig 2012-10-31 19:21:31.742319303 +0100
+++ edit.c 2012-10-31 19:21:44.031181937 +0100
@@ -809,7 +809,7 @@
int rval = 0;
for (add = 0, wlen = len; wlen - add > 0; add++) {
- if (strchr("\"#$&'()*;<=>?[\\]`{|}", s[add]) ||
+ if (strchr("\"#$&'()*:;<=>?[\\]`{|}", s[add]) ||
strchr(ifs, s[add])) {
if (putbuf_func(s, add) != 0) {
rval = -1;
Didn't send the diff; I think because of the general lack of interest in
ksh patches in the past.
Daniel
--
LÉVAI Dániel
PGP key ID = 0x83B63A8F
Key fingerprint = DBEC C66B A47A DFA2 792D 650C C69B BE4C 83B6 3A8F