aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Pasanen <dan.pasanen@gmail.com>2015-11-24 09:33:23 -0600
committerDan Pasanen <dan.pasanen@gmail.com>2015-11-24 09:53:24 -0600
commit76a049a87534099aaf276a677db0a3d634de0186 (patch)
treec5415236e51018aa628376b3a2efadd2d19a9586
parentafe6d8d503af5ac145f79c340cc1da2ff3559b7d (diff)
downloadandroid_external_bash-76a049a87534099aaf276a677db0a3d634de0186.tar.gz
android_external_bash-76a049a87534099aaf276a677db0a3d634de0186.tar.bz2
android_external_bash-76a049a87534099aaf276a677db0a3d634de0186.zip
bash: export environment variables in a way that bash understands
* also set xterm as TERM Change-Id: I39f06a5eab7a1e0920593bf0a52df7e9d780da99
-rw-r--r--etc/bashrc11
1 files changed, 5 insertions, 6 deletions
diff --git a/etc/bashrc b/etc/bashrc
index a86244f..655f516 100644
--- a/etc/bashrc
+++ b/etc/bashrc
@@ -5,12 +5,11 @@
# that can't tolerate any output. So make sure this doesn't display
# anything or bad things will happen !
-: ${HOME:=/sdcard}
-: ${HOSTNAME:=$(getprop ro.cm.device)}
-: ${TERM:=linux}
-: ${TMPDIR:=/data/local/tmp}
-: ${USER:=$(id -un)}
-export HOME HOSTNAME MKSH SHELL TERM TMPDIR USER
+export HOME=/sdcard
+export HOSTNAME=$(getprop ro.cm.device)
+export TERM=xterm
+export TMPDIR=/data/local/tmp
+export USER=$(id -un)
# Test for an interactive shell. There is no need to set anything
# past this point for scp and rcp, and it's important to refrain from