Source-Changes-HG archive

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

[src/trunk]: src/lib/libedit Add '*' and '[' to the list of characters which ...



details:   https://anonhg.NetBSD.org/src/rev/4e23b3b13924
branches:  trunk
changeset: 322409:4e23b3b13924
user:      abhinav <abhinav%NetBSD.org@localhost>
date:      Wed May 02 08:45:03 2018 +0000

description:
Add '*' and '[' to the list of characters which need escaping during autocompletion

diffstat:

 lib/libedit/filecomplete.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (27 lines):

diff -r 0ad26e8f1d37 -r 4e23b3b13924 lib/libedit/filecomplete.c
--- a/lib/libedit/filecomplete.c        Wed May 02 08:24:40 2018 +0000
+++ b/lib/libedit/filecomplete.c        Wed May 02 08:45:03 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: filecomplete.c,v 1.48 2017/10/27 18:16:09 abhinav Exp $        */
+/*     $NetBSD: filecomplete.c,v 1.49 2018/05/02 08:45:03 abhinav Exp $        */
 
 /*-
  * Copyright (c) 1997 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
 
 #include "config.h"
 #if !defined(lint) && !defined(SCCSID)
-__RCSID("$NetBSD: filecomplete.c,v 1.48 2017/10/27 18:16:09 abhinav Exp $");
+__RCSID("$NetBSD: filecomplete.c,v 1.49 2018/05/02 08:45:03 abhinav Exp $");
 #endif /* not lint && not SCCSID */
 
 #include <sys/types.h>
@@ -151,6 +151,8 @@
        case '{':
        case '}':
        case '&':
+       case '*':
+       case '[':
                return 1;
        default:
                return 0;



Home | Main Index | Thread Index | Old Index