Module Name: src Committed By: christos Date: Tue Sep 14 15:04:09 UTC 2021
Modified Files: src/bin/sh: histedit.c Log Message: Quote the filenames like before To generate a diff of this commit: cvs rdiff -u -r1.56 -r1.57 src/bin/sh/histedit.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/bin/sh/histedit.c diff -u src/bin/sh/histedit.c:1.56 src/bin/sh/histedit.c:1.57 --- src/bin/sh/histedit.c:1.56 Sun Aug 15 06:17:55 2021 +++ src/bin/sh/histedit.c Tue Sep 14 11:04:09 2021 @@ -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 @@ out: 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