From 984835ce1accc25ff9b93442bfedb884a23aa4b4 Mon Sep 17 00:00:00 2001 From: Iain Patterson Date: Fri, 26 Feb 2010 07:50:03 +0000 Subject: [PATCH] Removed unnecessary subshell for tty -s check. --- .bash_profile | 2 +- .bashrc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.bash_profile b/.bash_profile index 61a04b5..d2f4fc6 100644 --- a/.bash_profile +++ b/.bash_profile @@ -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 --- a/.bashrc +++ b/.bashrc @@ -1,4 +1,4 @@ -if $(tty -s); then +if tty -s; then . /etc/profile . ~/.bash_profile fi -- 2.7.4