aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xlang.csh6
-rwxr-xr-xlang.sh4
2 files changed, 5 insertions, 5 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
diff --git a/lang.sh b/lang.sh
index 9fe22d8a..5be62ad8 100755
--- a/lang.sh
+++ b/lang.sh
@@ -4,11 +4,11 @@ sourced=0
if [ -n "$LANG" ]; then
saved_lang="$LANG"
- [ -f $HOME/.i18n ] && . $HOME/.i18n && sourced=1
+ [ -f "$HOME/.i18n" ] && . "$HOME/.i18n" && sourced=1
LANG="$saved_lang"
unset saved_lang
else
- for langfile in /etc/sysconfig/i18n $HOME/.i18n ; do
+ for langfile in /etc/sysconfig/i18n "$HOME/.i18n" ; do
[ -f $langfile ] && . $langfile && sourced=1
done
fi