=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/etc/ksh.kshrc,v retrieving revision 1.21 retrieving revision 1.22 diff -c -r1.21 -r1.22 *** src/etc/ksh.kshrc 2016/09/09 16:11:12 1.21 --- src/etc/ksh.kshrc 2016/09/09 16:25:37 1.22 *************** *** 1,5 **** : ! # $OpenBSD: ksh.kshrc,v 1.21 2016/09/09 16:11:12 rpe Exp $ # # NAME: # ksh.kshrc - global initialization for ksh --- 1,5 ---- : ! # $OpenBSD: ksh.kshrc,v 1.22 2016/09/09 16:25:37 rpe Exp $ # # NAME: # ksh.kshrc - global initialization for ksh *************** *** 65,71 **** case "$TERM" in sun*-s) # sun console with status line ! if [ "$tty" != "$console" ]; then # ilabel ILS='\033]L'; ILE='\033\\' # window title bar --- 65,71 ---- case "$TERM" in sun*-s) # sun console with status line ! if [[ $tty != $console ]]; then # ilabel ILS='\033]L'; ILE='\033\\' # window title bar *************** *** 84,90 **** *) ;; esac # do we want window decorations? ! if [ "$ILS" ]; then function ilabel { print -n "${ILS}$*${ILE}">/dev/tty; } function label { print -n "${WLS}$*${WLE}">/dev/tty; } --- 84,90 ---- *) ;; esac # do we want window decorations? ! if [[ -n $ILS ]]; then function ilabel { print -n "${ILS}$*${ILE}">/dev/tty; } function label { print -n "${WLS}$*${WLE}">/dev/tty; } *************** *** 139,149 **** } # if $1 exists and is not in path, append it function add_path { ! [ -d ${1:-.} ] && no_path $* && eval ${2:-PATH}="\$${2:-PATH}:$1" } # if $1 exists and is not in path, prepend it function pre_path { ! [ -d ${1:-.} ] && no_path $* && eval ${2:-PATH}="$1:\$${2:-PATH}" } # if $1 is in path, remove it function del_path { --- 139,149 ---- } # if $1 exists and is not in path, append it function add_path { ! [[ -d ${1:-.} ]] && no_path $* && eval ${2:-PATH}="\$${2:-PATH}:$1" } # if $1 exists and is not in path, prepend it function pre_path { ! [[ -d ${1:-.} ]] && no_path $* && eval ${2:-PATH}="$1:\$${2:-PATH}" } # if $1 is in path, remove it function del_path {