=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/etc/ksh.kshrc,v retrieving revision 1.20 retrieving revision 1.21 diff -c -r1.20 -r1.21 *** src/etc/ksh.kshrc 2015/02/18 08:39:32 1.20 --- src/etc/ksh.kshrc 2016/09/09 16:11:12 1.21 *************** *** 1,5 **** : ! # $OpenBSD: ksh.kshrc,v 1.20 2015/02/18 08:39:32 rpe Exp $ # # NAME: # ksh.kshrc - global initialization for ksh --- 1,5 ---- : ! # $OpenBSD: ksh.kshrc,v 1.21 2016/09/09 16:11:12 rpe Exp $ # # NAME: # ksh.kshrc - global initialization for ksh *************** *** 53,58 **** --- 53,61 ---- tty=`tty` tty=`basename $tty` TTY=${TTY:-$tty} + # $console is the system console device + console=$(sysctl machdep.console_device) + console=${console#*=} set -o emacs