diff options
author | Bill Nottingham <notting@redhat.com> | 2010-09-22 11:40:51 -0400 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2010-09-22 11:40:51 -0400 |
commit | cdf0ae757755f341378356f5bb56d2eb6443fba9 (patch) | |
tree | d74541fc02f7df57ac044585fa1b44ad9e1aa3da /lang.csh | |
parent | 22c70b8c5cabcef9843e4f33313efbdd662dd93e (diff) | |
download | initscripts-cdf0ae757755f341378356f5bb56d2eb6443fba9.tar initscripts-cdf0ae757755f341378356f5bb56d2eb6443fba9.tar.gz initscripts-cdf0ae757755f341378356f5bb56d2eb6443fba9.tar.bz2 initscripts-cdf0ae757755f341378356f5bb56d2eb6443fba9.tar.xz initscripts-cdf0ae757755f341378356f5bb56d2eb6443fba9.zip |
Fix tcsh + grep-2.7. (#636552)
Diffstat (limited to 'lang.csh')
-rwxr-xr-x | lang.csh | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |