From 20d66f465e05db3391fcfb8df6a34936f877eb93 Mon Sep 17 00:00:00 2001 From: 10sr <8slashes+git@gmail.com> Date: Sun, 9 Sep 2012 14:17:28 +0900 Subject: [PATCH] fix small bug --- bashrc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bashrc b/bashrc index 5a5cedd..f44db67 100755 --- a/bashrc +++ b/bashrc @@ -218,9 +218,9 @@ cd(){ pushd ~/ >/dev/null elif ! test -d "$1" then - echo `basename ${SHELL}`: cd: "$1": No such file or directory 2>&1 + echo `basename ${SHELL}`: cd: "$1": No such file or directory 1>&2 return 1 - elif test $1 = - + elif test "$1" = - then local pwd="$PWD" popd >/dev/null