Changeset 28f36b8 in freewrt for package/mksh/patches


Ignore:
Timestamp:
Apr 6, 2008, 4:04:00 AM (18 years ago)
Author:
Thorsten Glaser <tg@…>
Branches:
freewrt_1_0, freewrt_2_0
Children:
133f6f9
Parents:
48e5060
Message:

update to R33c here too

  • tested that both full and small versions compile
  • full version is even 4K smaller than R31c oO

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

File:
1 edited

Legend:

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

    r48e5060 r28f36b8  
    66          – yofuh doesn’t like $? in $PS1
    77
    8 --- mksh.orig/dot.mkshrc        Tue Oct  2 01:03:12 2007
    9 +++ mksh/dot.mkshrc     Mon Oct 15 09:32:00 2007
    10 @@ -24,13 +24,15 @@
    11  #-
    12  # sample mksh initialisation file for interactive shells
     8--- mksh.orig/dot.mkshrc        Mon Mar  3 20:22:37 2008
     9+++ mksh/dot.mkshrc     Fri Mar 28 22:04:44 2008
     10@@ -25,13 +25,15 @@
     11 # sample mksh initialisation file for interactive shells; install as
     12 # /etc/skel/.mkshrc (as root, for new accounts) or copy to ~/.mkshrc
    1313 
    1414-: ${EDITOR:=/bin/ed} ${TERM:=vt100} ${HOSTNAME:=$(ulimit -c 0;hostname -s 2>&-)}
     
    1717 : ${HOSTNAME:=nil}; PS1='#'; [[ "$(ulimit -c 0; id -u 2>&-)" -eq 0 ]] || PS1='$'
    1818 function precmd {
    19         typeset -i10 e=$?
     19        typeset -Ui10 e=$?
    2020 
    21 -       (( e )) && print -n -- "$e|"
     21-       (( e )) && print -n "$e|"
    2222+# enable this back if you want the errorlevel in your prompt
    23 +# this is default in upstream mksh
    24 +#      (( e )) && print -n -- "$e|"
     23+# this is default in upstream mksh, disabled locally in fwrt
     24+#      (( e )) && print -n "$e|"
    2525 }
    2626 PS1='$(precmd)${USER:=$(ulimit -c 0;id -un 2>&- || print \?)}@${HOSTNAME%%.*}:$(
    2727        typeset pfx=~ wd=${PWD:-?}
    28 @@ -50,7 +52,7 @@ export EDITOR HOSTNAME LESSHISTFILE=- MK
     28@@ -51,7 +53,7 @@ export EDITOR HOSTNAME LESSHISTFILE=- MK
    2929 alias l='/bin/ls -F'
    3030 alias la='l -a'
    3131 alias ll='l -l'
    32 -alias lo='la -lo'
    33 +alias lo='la -l'
     32-alias lo='l -alo'
     33+alias lo='l -al'
    3434 alias which='whence -p'
    35  whence -p rot13 >&- || alias rot13='tr [A-Za-z] [N-ZA-Mn-za-m]'
    36  whence -p hd >&- || function hd {
     35 whence -p rot13 >&- || alias rot13='tr \
     36     abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ \
Note: See TracChangeset for help on using the changeset viewer.