aboutsummaryrefslogtreecommitdiffstats
path: root/examples/startup-files/bashrc
diff options
context:
space:
mode:
authorChet Ramey <chet.ramey@case.edu>2011-11-22 19:11:26 -0500
committerChet Ramey <chet.ramey@case.edu>2011-11-22 19:11:26 -0500
commit495aee441b75276e38c75694ccb455bb6463fdb9 (patch)
treef12907dbf62388e6c65dfa1c5e1199509936707e /examples/startup-files/bashrc
parent30d188c2932d6ef609d894fefeb7e7b03ccff463 (diff)
downloadandroid_external_bash-495aee441b75276e38c75694ccb455bb6463fdb9.tar.gz
android_external_bash-495aee441b75276e38c75694ccb455bb6463fdb9.tar.bz2
android_external_bash-495aee441b75276e38c75694ccb455bb6463fdb9.zip
Bash-4.2 distribution sources and documentation
Diffstat (limited to 'examples/startup-files/bashrc')
-rw-r--r--examples/startup-files/bashrc7
1 files changed, 4 insertions, 3 deletions
diff --git a/examples/startup-files/bashrc b/examples/startup-files/bashrc
index 069e8be..2d8d37b 100644
--- a/examples/startup-files/bashrc
+++ b/examples/startup-files/bashrc
@@ -1,6 +1,7 @@
-if [ -z "$PS1" ]; then
- return
-fi
+case $- in
+*i*) ;;
+*) return ;;
+esac
# bogus
if [ -f /unix ] ; then