diff options
author | Dan Pasanen <dan.pasanen@gmail.com> | 2015-11-24 09:33:23 -0600 |
---|---|---|
committer | Dan Pasanen <dan.pasanen@gmail.com> | 2015-11-24 09:53:24 -0600 |
commit | 76a049a87534099aaf276a677db0a3d634de0186 (patch) | |
tree | c5415236e51018aa628376b3a2efadd2d19a9586 /etc | |
parent | afe6d8d503af5ac145f79c340cc1da2ff3559b7d (diff) | |
download | android_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
Diffstat (limited to 'etc')
-rw-r--r-- | etc/bashrc | 11 |
1 files changed, 5 insertions, 6 deletions
@@ -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 |