Changeset 8639e7c in freewrt for package/mksh/patches


Ignore:
Timestamp:
Nov 22, 2011, 8:21:34 PM (14 years ago)
Author:
Thorsten Glaser <tg@…>
Branches:
freewrt_1_0, freewrt_2_0
Children:
56fec81
Parents:
7f398d7
Message:

mksh R40c

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

File:
1 edited

Legend:

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

    r7f398d7 r8639e7c  
    33        • FreeWRT patches:
    44          – no hostname(1)
    5           – ls has no -o
     5          – ls(1) has no -o option
    66          – yofuh doesn’t like $? in $PS1
    77        • OpenWrt and FreeWRT-1.0 fix:
     
    1919 : ${HOSTNAME:=nil}; if (( USER_ID )); then PS1='$'; else PS1='#'; fi
    2020 function precmd {
    21         typeset e=$?
     21        local e=$?
    2222 
    2323-       (( e )) && print -n "$e|"
     
    2626+#      (( e )) && print -n "$e|"
    2727 }
    28  PS1='
    29 $(precmd)${USER:=$(ulimit -c 0;id -un 2>&-||print \?)}@${HOSTNAME%%.*}:$(
    30         typeset d=${PWD:-?} n p=~; [[ $p = ?(*/) ]] || d=${d/#$p/~}
    31 @@ -39,7 +41,7 @@ unalias ls
     28 PS1=$'\001\r''$(precmd)${USER:=$(ulimit -c 0; id -un 2>/dev/null || echo \?
     29        )}@${HOSTNAME%%.*}:$(local d=${PWD:-?} p=~; [[ $p = ?(*/) ]] || \
     30@@ -40,7 +42,7 @@ unalias ls
    3231 alias l='ls -F'
    3332 alias la='l -a'
     
    3837     abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ \
    3938     nopqrstuvwxyzabcdefghijklmNOPQRSTUVWXYZABCDEFGHIJKLM'
    40 @@ -352,4 +354,8 @@ alias cls='print -n \\033c'
     39@@ -372,4 +374,8 @@ alias cls='print -n \\033c'
    4140 
    4241 unset p
     
    4645+[[ -z $ENV ]] || export ENV
    4746+
    48  : place customsations above this line
     47 : place customisations above this line
Note: See TracChangeset for help on using the changeset viewer.