Source-Changes-HG archive

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

[src/trunk]: src/bin/sh Quote the filenames like before



details:   https://anonhg.NetBSD.org/src/rev/12ebb3e88a6d
branches:  trunk
changeset: 986226:12ebb3e88a6d
user:      christos <christos%NetBSD.org@localhost>
date:      Tue Sep 14 15:04:09 2021 +0000

description:
Quote the filenames like before

diffstat:

 bin/sh/histedit.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (30 lines):

diff -r fdd68c7e0e34 -r 12ebb3e88a6d bin/sh/histedit.c
--- a/bin/sh/histedit.c Tue Sep 14 14:49:39 2021 +0000
+++ b/bin/sh/histedit.c Tue Sep 14 15:04:09 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: histedit.c,v 1.56 2021/08/15 10:17:55 christos Exp $   */
+/*     $NetBSD: histedit.c,v 1.57 2021/09/14 15:04:09 christos Exp $   */
 
 /*-
  * Copyright (c) 1993
@@ -37,7 +37,7 @@
 #if 0
 static char sccsid[] = "@(#)histedit.c 8.2 (Berkeley) 5/4/95";
 #else
-__RCSID("$NetBSD: histedit.c,v 1.56 2021/08/15 10:17:55 christos Exp $");
+__RCSID("$NetBSD: histedit.c,v 1.57 2021/09/14 15:04:09 christos Exp $");
 #endif
 #endif /* not lint */
 
@@ -622,9 +622,9 @@
 unsigned char
 sh_complete(EditLine *sel, int ch __unused)
 {
-       return (unsigned char)fn_complete(sel, NULL, sh_matches,
+       return (unsigned char)fn_complete2(sel, NULL, sh_matches,
                L" \t\n\"\\'`@$><=;|&{(", NULL, NULL, (size_t)100,
-               NULL, &((int) {0}), NULL, NULL);
+               NULL, &((int) {0}), NULL, NULL, FN_QUOTE_MATCH);
 }
 
 static int



Home | Main Index | Thread Index | Old Index