[BACK]Return to ksh.kshrc CVS log [TXT][DIR] Up to [local] / src / etc

Diff for /src/etc/ksh.kshrc between version 1.21 and 1.22

version 1.21, 2016/09/09 16:11:12 version 1.22, 2016/09/09 16:25:37
Line 65 
Line 65 
         case "$TERM" in          case "$TERM" in
         sun*-s)          sun*-s)
                 # sun console with status line                  # sun console with status line
                 if [ "$tty" != "$console" ]; then                  if [[ $tty != $console ]]; then
                         # ilabel                          # ilabel
                         ILS='\033]L'; ILE='\033\\'                          ILS='\033]L'; ILE='\033\\'
                         # window title bar                          # window title bar
Line 84 
Line 84 
         *)      ;;          *)      ;;
         esac          esac
         # do we want window decorations?          # do we want window decorations?
         if [ "$ILS" ]; then          if [[ -n $ILS ]]; then
                 function ilabel { print -n "${ILS}$*${ILE}">/dev/tty; }                  function ilabel { print -n "${ILS}$*${ILE}">/dev/tty; }
                 function label { print -n "${WLS}$*${WLE}">/dev/tty; }                  function label { print -n "${WLS}$*${WLE}">/dev/tty; }
   
Line 139 
Line 139 
 }  }
 # if $1 exists and is not in path, append it  # if $1 exists and is not in path, append it
 function add_path {  function add_path {
   [ -d ${1:-.} ] && no_path $* && eval ${2:-PATH}="\$${2:-PATH}:$1"    [[ -d ${1:-.} ]] && no_path $* && eval ${2:-PATH}="\$${2:-PATH}:$1"
 }  }
 # if $1 exists and is not in path, prepend it  # if $1 exists and is not in path, prepend it
 function pre_path {  function pre_path {
   [ -d ${1:-.} ] && no_path $* && eval ${2:-PATH}="$1:\$${2:-PATH}"    [[ -d ${1:-.} ]] && no_path $* && eval ${2:-PATH}="$1:\$${2:-PATH}"
 }  }
 # if $1 is in path, remove it  # if $1 is in path, remove it
 function del_path {  function del_path {

Legend:
Removed from v.1.21  
changed lines
  Added in v.1.22