summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2015-11-02 13:32:07 -0800
committerElliott Hughes <enh@google.com>2015-11-02 14:40:16 -0800
commitd45dd20c434432988f8dec7000e0e5fba8a81176 (patch)
tree477ce1a15f1a94330962ecee594a590275c232d2
parent19107cc38759509b2d0a15c1811f324db5b0f0c0 (diff)
downloadmksh-d45dd20c434432988f8dec7000e0e5fba8a81176.tar.gz
adbd sets HOME/LOGNAME/SHELL/USER now.
We also don't need to export variables we inherited --- they're automatically exported. Bug: http://b/19635681 Change-Id: Ie8e8480e7487ddc0fb9e984235b8b5ea0c587686
-rw-r--r--mkshrc8
1 files changed, 2 insertions, 6 deletions
diff --git a/mkshrc b/mkshrc
index b2bc13b..cefafe7 100644
--- a/mkshrc
+++ b/mkshrc
@@ -6,15 +6,11 @@
#
# Support: https://launchpad.net/mksh
-: ${HOME:=/data}
: ${HOSTNAME:=$(getprop ro.product.device)}
: ${HOSTNAME:=android}
-: ${MKSH:=/system/bin/sh}
-: ${SHELL:=$MKSH}
: ${TERM:=xterm}
: ${TMPDIR:=/data/local/tmp}
-: ${USER:=$(id -un)}
-export HOME HOSTNAME MKSH SHELL TERM TMPDIR USER
+export HOSTNAME TERM TMPDIR
if (( USER_ID )); then PS1='$'; else PS1='#'; fi
PS4='[$EPOCHREALTIME] '; PS1='${|
@@ -23,4 +19,4 @@ PS4='[$EPOCHREALTIME] '; PS1='${|
(( e )) && REPLY+="$e|"
return $e
-}$USER@$HOSTNAME:${PWD:-?} '"$PS1 "
+}$HOSTNAME:${PWD:-?} '"$PS1 "