packages/utils/mksh/patches/100-dot_mkshrc
nbd 615293f02a update mksh to R29g
git-svn-id: svn://svn.openwrt.org/openwrt/packages@8130 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-07-23 14:04:39 +00:00

19 lines
796 B
Plaintext

$FreeWRT$
--- mksh.orig/dot.mkshrc Wed Jun 20 13:38:18 2007
+++ mksh/dot.mkshrc Mon Jul 9 12:32:20 2007
@@ -1,4 +1,4 @@
-: ${EDITOR:=/bin/ed} ${TERM:=vt100} ${HOSTNAME:=$(ulimit -c 0;hostname -s 2>&-)}
+: ${EDITOR:=/bin/ed} ${TERM:=vt100} ${HOSTNAME:=$(</proc/sys/kernel/hostname)}
[[ $HOSTNAME = @(localhost|*([ ])) ]] && HOSTNAME=$(ulimit -c 0;hostname 2>&-)
: ${HOSTNAME:=nil}; PS1='#'; [[ "$(ulimit -c 0; id -u 2>&-)" -eq 0 ]] || PS1='$'
PS1='$(((e = $?)) && print $e\|)${USER:=$(ulimit -c 0; id -un 2>&- || \
@@ -19,7 +19,7 @@ export EDITOR HOSTNAME MKSH=$(whence -p
alias l='/bin/ls -F'
alias la='l -a'
alias ll='l -l'
-alias lo='la -lo'
+alias lo='la -l'
alias which='whence -p'
whence -p rot13 >&- || alias rot13='tr [A-Za-z] [N-ZA-Mn-za-m]'
whence -p hd >&- || function hd {