From f4cb393ab1660afa7267b8d4947c70646002c60f Mon Sep 17 00:00:00 2001 From: rpe <> Date: Fri, 9 Sep 2016 16:11:12 +0000 Subject: [PATCH] Resurrect the detection of the console device that got lost a long time ago. OK tb --- src/etc/ksh.kshrc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/etc/ksh.kshrc b/src/etc/ksh.kshrc index dbd09225..224049a2 100644 --- a/src/etc/ksh.kshrc +++ b/src/etc/ksh.kshrc @@ -1,5 +1,5 @@ : -# $OpenBSD: ksh.kshrc,v 1.20 2015/02/18 08:39:32 rpe Exp $ +# $OpenBSD: ksh.kshrc,v 1.21 2016/09/09 16:11:12 rpe Exp $ # # NAME: # ksh.kshrc - global initialization for ksh @@ -53,6 +53,9 @@ case "$-" in tty=`tty` tty=`basename $tty` TTY=${TTY:-$tty} + # $console is the system console device + console=$(sysctl machdep.console_device) + console=${console#*=} set -o emacs