Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/bin/ksh Fix completion of files containing #. From Soren Jac...



details:   https://anonhg.NetBSD.org/src/rev/f407f5a19604
branches:  trunk
changeset: 546799:f407f5a19604
user:      wiz <wiz%NetBSD.org@localhost>
date:      Wed May 07 06:39:08 2003 +0000

description:
Fix completion of files containing #. From Soren Jacobsen in PR 21486.

diffstat:

 bin/ksh/edit.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r a159b3b1bea0 -r f407f5a19604 bin/ksh/edit.c
--- a/bin/ksh/edit.c    Wed May 07 05:19:44 2003 +0000
+++ b/bin/ksh/edit.c    Wed May 07 06:39:08 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: edit.c,v 1.9 2003/05/06 11:34:01 wiz Exp $     */
+/*     $NetBSD: edit.c,v 1.10 2003/05/07 06:39:08 wiz Exp $    */
 
 /*
  * Command line editing - common code
@@ -1107,7 +1107,7 @@
        int rval=0;
 
        for (add = 0, wlen = len; wlen - add > 0; add++) {
-               if (strchr("\\$(){}*&;|<>\"'`", s[add]) || strchr(ifs, s[add])) {
+               if (strchr("\\$(){}*&;|<>\"'`#", s[add]) || strchr(ifs, s[add])) {
                        if (putbuf_func(s, add) != 0) {
                                rval = -1;
                                break;



Home | Main Index | Thread Index | Old Index