changeset 242:ebfa844d2ef8

[bash] Also ensures interactive terminal.
author Edho Arief <edho@myconan.net>
date Thu, 03 Nov 2011 15:43:17 +0700
parents 443e0004a708
children 3167e31f8f01
files rc/bash
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/rc/bash	Thu Nov 03 15:41:03 2011 +0700
+++ b/rc/bash	Thu Nov 03 15:43:17 2011 +0700
@@ -1,5 +1,10 @@
 #!/usr/bin/env bash
 
+case "${-}" in
+  *i*) ;;
+  *) return;;
+esac
+
 if [ "${ECOS_BASH_LOADED}" != "yes" ]; then
   ECOS_BASH_LOADED="yes"
 else