Changeset 866c9df in freewrt for package/mksh/patches


Ignore:
Timestamp:
Jun 15, 2009, 9:22:50 AM (17 years ago)
Author:
Thorsten Glaser <tg@…>
Branches:
freewrt_1_0, freewrt_2_0
Children:
48a6e27
Parents:
e1fb841
Message:

backport patch I wrote for OpenWrt, which addresses a problem
that has been fixed in FreeWRT-trunk some time ago, but needs
to be worked around here: $PS1 is exported and contains a re-
ference to precmd() which is not ⇒ set $ENV to /etc/mkshrc to
ensure it’ll be found by interactive non-login subshells

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

File:
1 edited

Legend:

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

    re1fb841 r866c9df  
    55          – ls has no -o
    66          – yofuh doesn’t like $? in $PS1
     7        • OpenWrt and FreeWRT-1.0 fix:
     8          – since this is not ~/.mkshrc make sure subshells find it
    79
    810--- mksh/dot.mkshrc~    2009-05-31 19:17:57.000000000 +0200
     
    3638 whence -p rot13 >&- || alias rot13='tr \
    3739     abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ \
     40@@ -283,4 +283,8 @@ function Lstripcom {
     41        done; }
     42 }
     43 
     44+# we need this in FreeWRT 1.0 for subshells that are not login shells
     45+: ${ENV=/etc/mkshrc}
     46+[[ -z $ENV ]] || export ENV
     47+
     48 : place customsations above this line
Note: See TracChangeset for help on using the changeset viewer.