aboutsummaryrefslogtreecommitdiffstats
path: root/lang.csh
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2007-02-19 22:21:47 +0000
committerBill Nottingham <notting@redhat.com>2007-02-19 22:21:47 +0000
commit67e2353319ab7e8ede293409d34d2b849a607816 (patch)
tree42f7f5d7f9b601d1cd7792974aafe78793144457 /lang.csh
parentc4ccfb343d04048fca53e0c2242ca3578dae73b2 (diff)
downloadinitscripts-67e2353319ab7e8ede293409d34d2b849a607816.tar
initscripts-67e2353319ab7e8ede293409d34d2b849a607816.tar.gz
initscripts-67e2353319ab7e8ede293409d34d2b849a607816.tar.bz2
initscripts-67e2353319ab7e8ede293409d34d2b849a607816.tar.xz
initscripts-67e2353319ab7e8ede293409d34d2b849a607816.zip
if $LANG is set, don't override it (#229102)
Diffstat (limited to 'lang.csh')
-rwxr-xr-xlang.csh8
1 files changed, 6 insertions, 2 deletions
diff --git a/lang.csh b/lang.csh
index 0327a27a..624a3c68 100755
--- a/lang.csh
+++ b/lang.csh
@@ -1,12 +1,16 @@
# /etc/profile.d/lang.csh - set i18n stuff
set sourced=0
-foreach file (/etc/sysconfig/i18n $HOME/.i18n)
+if ($?LANG) then
+ set sourced=1
+else
+ foreach file (/etc/sysconfig/i18n $HOME/.i18n)
if ( -f $file ) then
eval `grep -v '^[:blank:]*#' $file | sed 's|\([^=]*\)=\([^=]*\)|setenv \1 \2|g' | sed 's|$|;|'`
endif
set sourced=1
-end
+ end
+endif
if ($?GDM_LANG) then
set sourced=1