From 526a1d3dcf7f16dd90b723f1e8f4326a09a8c2b6 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Wed, 22 Sep 2010 11:40:51 -0400 Subject: Fix tcsh + grep-2.7. (#636552) --- lang.csh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lang.csh') diff --git a/lang.csh b/lang.csh index 984fe0d4..caa058bc 100755 --- a/lang.csh +++ b/lang.csh @@ -5,7 +5,7 @@ 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|$|;|'` + eval `grep -v '^[[:blank:]]*#' "$HOME/.i18n" | sed 's|\([^=]*\)=\([^=]*\)|setenv \1 \2|g' | sed 's|$|;|'` set sourced=1 endif setenv LANG $saved_lang @@ -13,7 +13,7 @@ if ($?LANG) then 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|$|;|'` + eval `grep -v '^[[:blank:]]*#' $file | sed 's|\([^=]*\)=\([^=]*\)|setenv \1 \2|g' | sed 's|$|;|'` set sourced=1 endif end -- cgit v1.2.1