Blame SOURCES/setup-2.12.2-lang.csh-prevent-grep-from-failing.patch

ae5207
diff --git a/lang.csh b/lang.csh
ae5207
index 1dc78f8..695c1bc 100644
ae5207
--- a/lang.csh
ae5207
+++ b/lang.csh
ae5207
@@ -36,7 +36,7 @@ set in_console=`tty | grep -vc -e '/dev/tty'`
ae5207
 
ae5207
 if (${?LANG} && ${?TERM}) then
ae5207
     if (${TERM} == 'linux' && $in_console == 0) then
ae5207
-        set utf8_used=`echo ${LANG} | grep --quiet -E -i -e '^.+\.utf-?8$'; echo $?`
ae5207
+        set utf8_used=`echo ${LANG} | grep -vc -E -i -e '^.+\.utf-?8$'`
ae5207
 
ae5207
         if (${utf8_used} == 0) then
ae5207
             switch (${LANG})