Removed unnecessary subshell for tty -s check.
authorIain Patterson <me@iain.cx>
Fri, 26 Feb 2010 07:50:03 +0000 (07:50 +0000)
committerIain Patterson <me@iain.cx>
Thu, 18 Mar 2010 15:50:10 +0000 (15:50 +0000)
.bash_profile
.bashrc

index 61a04b5..d2f4fc6 100644 (file)
@@ -1,4 +1,4 @@
-if $(tty -s) || [ "${0:0:1}" = "-" -o "$1" = "force" ]; then
+if tty -s || [ "${0:0:1}" = "-" -o "$1" = "force" ]; then
   # Remember if nocaseglob was on.
   shopt -q nocaseglob
   nocg=$?
diff --git a/.bashrc b/.bashrc
index d56387e..3d80825 100644 (file)
--- a/.bashrc
+++ b/.bashrc
@@ -1,4 +1,4 @@
-if $(tty -s); then
+if tty -s; then
   . /etc/profile
   . ~/.bash_profile
 fi