Changeset 849d452 in freewrt for package/mksh/patches


Ignore:
Timestamp:
May 3, 2013, 3:51:18 PM (13 years ago)
Author:
Thorsten Glaser <tg@…>
Branches:
freewrt_1_0, freewrt_2_0
Children:
53fa986
Parents:
ee36332
Message:

mksh R46

git-svn-id: svn://www.freewrt.org/branches/freewrt_1_0@4027 afb5a338-a214-0410-bd46-81f09a774fd1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • package/mksh/patches/patch-dot_mkshrc

    ree36332 r849d452  
    33        • FreeWRT patches:
    44          – no hostname(1)
     5          – yofuh doesn’t like $? in $PS1
    56          – ls(1) has no -o option
    6           – yofuh doesn’t like $? in $PS1
    77        • OpenWrt and FreeWRT-1.0 adjustment:
    88          – since this is not ~/.mkshrc make sure subshells find it
    99
    10 --- mksh/dot.mkshrc~    2013-04-05 15:40:17.000000000 +0000
    11 +++ mksh/dot.mkshrc     2013-04-30 20:22:13.619440123 +0000
    12 @@ -22,13 +22,15 @@
    13  #-
    14  # ${ENV:-~/.mkshrc}: mksh initialisation file for interactive shells
     10--- mksh/dot.mkshrc~    2013-05-02 22:00:13.000000000 +0000
     11+++ mksh/dot.mkshrc     2013-05-03 13:46:54.016803654 +0000
     12@@ -28,13 +28,15 @@ case $KSH_VERSION in
     13 *) return 0 ;;
     14 esac
    1515 
    1616-PS1='#'; (( USER_ID )) && PS1='$'; [[ ${HOSTNAME:=$(ulimit -c 0; hostname -s \
     
    1919+    )} = *([    ]|localhost) ]] && HOSTNAME=$(ulimit -c 0; hostname \
    2020     2>/dev/null); : ${EDITOR:=/bin/ed} ${HOSTNAME:=nil} ${TERM:=vt100}
    21  function precmd {
     21 : ${MKSH:=$(whence -p mksh)}; PS4='[$EPOCHREALTIME] '; PS1=$'\001\r''${|
    2222        local e=$?
    2323 
    24 -       (( e )) && print -n "$e|"
     24-       (( e )) && REPLY+="$e|"
    2525+# enable this back if you want the errorlevel in your prompt
    2626+# this is default in upstream mksh, disabled locally in fwrt
    27 +#      (( e )) && print -n "$e|"
    28         # precmd is required to retain the errorlevel when ${ …;} is used
    29         return $e
    30  }
    31 @@ -43,7 +45,7 @@ unalias ls
     27+#      (( e )) && REPLY+="$e|"
     28        REPLY+=${USER:=$(ulimit -c 0; id -un 2>/dev/null || echo \?)}
     29        REPLY+=@${HOSTNAME%%.*}:
     30 
     31@@ -50,7 +52,7 @@ unalias ls
    3232 alias l='ls -F'
    3333 alias la='l -a'
     
    3838 whence -p rot13 >/dev/null || alias rot13='tr \
    3939     abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ \
    40 @@ -373,4 +375,8 @@ alias cls='print -n \\033c'
     40@@ -413,4 +415,8 @@ alias cls='print -n \\033c'
    4141 
    4242 unset p
Note: See TracChangeset for help on using the changeset viewer.