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 char...



details:   https://anonhg.NetBSD.org/src/rev/5bbb85dfbd54
branches:  trunk
changeset: 318646:5bbb85dfbd54
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 83a3c006c612 -r 5bbb85dfbd54 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