From 988c0fe1c86d97b1693ae4aa5ac31be901e85775 Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Fri, 9 Dec 2011 03:07:34 +0100 Subject: fix redirection of stderr 2>&1 has to be after the redirection of stdout --- bashrc/common/locale.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'bashrc') diff --git a/bashrc/common/locale.sh b/bashrc/common/locale.sh index b75b3aa..72c70d3 100644 --- a/bashrc/common/locale.sh +++ b/bashrc/common/locale.sh @@ -2,10 +2,10 @@ eval unset ${!LC_*} LANG -if hash locale 2>&1 >/dev/null ; then - if locale -a | grep "en_US.UTF-8" 2>&1 >/dev/null ; then +if hash locale >/dev/null 2>&1 ; then + if locale -a | grep "en_US.UTF-8" >/dev/null 2>&1 ; then export LANG="en_US.UTF-8" - elif locale -a | grep "en_US.utf8" 2>&1 >/dev/null ; then + elif locale -a | grep "en_US.utf8" >/dev/null 2>&1 ; then export LANG="en_US.utf8" fi fi -- cgit v1.2.3