aboutsummaryrefslogtreecommitdiffstats
path: root/lang.csh
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2009-04-30 13:25:40 -0400
committerBill Nottingham <notting@redhat.com>2009-04-30 13:25:40 -0400
commit89385ab41c09a8b4c8a630bfe385ea7a143e00ef (patch)
tree5ef142881544e2715330ae665eac596c667f79be /lang.csh
parent186630068911f23941310deee53191f17225c608 (diff)
downloadinitscripts-89385ab41c09a8b4c8a630bfe385ea7a143e00ef.tar
initscripts-89385ab41c09a8b4c8a630bfe385ea7a143e00ef.tar.gz
initscripts-89385ab41c09a8b4c8a630bfe385ea7a143e00ef.tar.bz2
initscripts-89385ab41c09a8b4c8a630bfe385ea7a143e00ef.tar.xz
initscripts-89385ab41c09a8b4c8a630bfe385ea7a143e00ef.zip
Handle spaces in $HOME. (#498482)
Diffstat (limited to 'lang.csh')
-rwxr-xr-xlang.csh6
1 files changed, 3 insertions, 3 deletions
diff --git a/lang.csh b/lang.csh
index 9d68d9a4..984fe0d4 100755
--- a/lang.csh
+++ b/lang.csh
@@ -4,14 +4,14 @@ set sourced=0
if ($?LANG) then
set saved_lang=$LANG
- if ( -f $HOME/.i18n ) then
- eval `grep -v '^[:blank:]*#' $HOME/.i18n | sed 's|\([^=]*\)=\([^=]*\)|setenv \1 \2|g' | sed 's|$|;|'`
+ if ( -f "$HOME/.i18n" ) then
+ eval `grep -v '^[:blank:]*#' "$HOME/.i18n" | sed 's|\([^=]*\)=\([^=]*\)|setenv \1 \2|g' | sed 's|$|;|'`
set sourced=1
endif
setenv LANG $saved_lang
unset saved_lang
else
- foreach file (/etc/sysconfig/i18n $HOME/.i18n)
+ foreach file (/etc/sysconfig/i18n "$HOME/.i18n")
if ( -f $file ) then
eval `grep -v '^[:blank:]*#' $file | sed 's|\([^=]*\)=\([^=]*\)|setenv \1 \2|g' | sed 's|$|;|'`
set sourced=1