From: Iain Patterson Date: Fri, 26 Feb 2010 07:50:03 +0000 (+0000) Subject: Removed unnecessary subshell for tty -s check. X-Git-Url: http://git.iain.cx/?a=commitdiff_plain;h=984835ce1accc25ff9b93442bfedb884a23aa4b4;p=profile.git Removed unnecessary subshell for tty -s check. --- 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