27 lines
799 B
Diff
27 lines
799 B
Diff
|
|
From ef35ac39f3b280e03590cc13362b1086e843b3ca Mon Sep 17 00:00:00 2001
|
||
|
|
From: Martin Osvald <mosvald@redhat.com>
|
||
|
|
Date: Fri, 30 Aug 2019 16:51:35 +0200
|
||
|
|
Subject: [PATCH 22/23] fix lang.csh script so it doesn't break tcsh -e scripts
|
||
|
|
(#1620004) II
|
||
|
|
|
||
|
|
---
|
||
|
|
lang.csh | 2 +-
|
||
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||
|
|
|
||
|
|
diff --git a/lang.csh b/lang.csh
|
||
|
|
index 3ebd023..f81de15 100644
|
||
|
|
--- a/lang.csh
|
||
|
|
+++ b/lang.csh
|
||
|
|
@@ -66,7 +66,7 @@ set in_console=`tty | grep -vc -e '/dev/tty'`
|
||
|
|
|
||
|
|
if (${?LANG} && ${?TERM}) then
|
||
|
|
if (${TERM} == 'linux' && $in_console == 0) then
|
||
|
|
- set utf8_used=`echo ${LANG} | grep --quiet -E -i -e '^.+\.utf-?8$'; echo $?`
|
||
|
|
+ set utf8_used=`echo ${LANG} | grep -vc -E -i -e '^.+\.utf-?8$'`
|
||
|
|
|
||
|
|
if (${utf8_used} == 0) then
|
||
|
|
switch (${LANG})
|
||
|
|
--
|
||
|
|
2.19.1
|
||
|
|
|