Source-Changes-HG archive

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

[src/trunk]: src/bin/csh Turn on EL_SAFEREAD



details:   https://anonhg.NetBSD.org/src/rev/506cfb8339f9
branches:  trunk
changeset: 1022943:506cfb8339f9
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Aug 15 12:16:02 2021 +0000

description:
Turn on EL_SAFEREAD

diffstat:

 bin/csh/set.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 025507cc5805 -r 506cfb8339f9 bin/csh/set.c
--- a/bin/csh/set.c     Sun Aug 15 11:57:17 2021 +0000
+++ b/bin/csh/set.c     Sun Aug 15 12:16:02 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: set.c,v 1.37 2020/01/12 18:42:41 christos Exp $ */
+/* $NetBSD: set.c,v 1.38 2021/08/15 12:16:02 christos Exp $ */
 
 /*-
  * Copyright (c) 1980, 1991, 1993
@@ -34,7 +34,7 @@
 #if 0
 static char sccsid[] = "@(#)set.c      8.1 (Berkeley) 5/31/93";
 #else
-__RCSID("$NetBSD: set.c,v 1.37 2020/01/12 18:42:41 christos Exp $");
+__RCSID("$NetBSD: set.c,v 1.38 2021/08/15 12:16:02 christos Exp $");
 #endif
 #endif /* not lint */
 
@@ -158,6 +158,7 @@
        el_set(el, EL_EDITOR, *vn ? short2str(vn) : "emacs");
        el_set(el, EL_PROMPT, printpromptstr);
        el_set(el, EL_ALIAS_TEXT, alias_text, NULL);
+       el_set(el, EL_SAFEREAD, 1);
        el_set(el, EL_ADDFN, "rl-complete",
            "ReadLine compatible completion function", _el_fn_complete);
        el_set(el, EL_BIND, "^I", adrof(STRfilec) ? "rl-complete" : "ed-insert",



Home | Main Index | Thread Index | Old Index