diff options
author | Marco S Hyman <marc@cvs.openbsd.org> | 1998-03-22 03:39:12 +0000 |
---|---|---|
committer | Marco S Hyman <marc@cvs.openbsd.org> | 1998-03-22 03:39:12 +0000 |
commit | 768bbf877c347890eb4cbb5c85e584618a582bae (patch) | |
tree | bbe90ad1e46d9f4d709f6c5f010259151a81e477 /etc/ksh.kshrc | |
parent | fe35ad191836cf1776e13981822cfb016e62aa05 (diff) |
fix ksh.kshrc; check ksh.kshrc, .kshrc for owner/mode/path
Diffstat (limited to 'etc/ksh.kshrc')
-rw-r--r-- | etc/ksh.kshrc | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/etc/ksh.kshrc b/etc/ksh.kshrc index 8442ffb6d82..66072c5ef40 100644 --- a/etc/ksh.kshrc +++ b/etc/ksh.kshrc @@ -1,5 +1,5 @@ : -# $OpenBSD: ksh.kshrc,v 1.2 1996/12/16 03:49:50 kstailey Exp $ +# $OpenBSD: ksh.kshrc,v 1.3 1998/03/22 03:39:10 marc Exp $ # # NAME: # ksh.kshrc - global initialization for ksh @@ -37,6 +37,7 @@ case "$-" in # install whoami.sh USER=`whoami 2>/dev/null` USER=${USER:-`id | sed 's/^[^(]*(\([^)]*\)).*/\1/'`} + UID=`id -u` case $UID in 0) PS1S='# ';; esac @@ -54,8 +55,6 @@ case "$-" in tty=`tty` tty=`basename $tty` TTY=${TTY:-$tty} - # console is the system console device - console=`sysctl machdep.console_device | cut -d' ' -f3` set -o emacs @@ -82,8 +81,8 @@ case "$-" in ;; esac case "$TERM" in - sun*) - # these are not as neat as their csh equivalents + sun*-s) + # sun console with status line if [ "$tty" != "$console" ]; then # ilabel ILS='\033]L'; ILE='\033\\' |