Ticket #288: fix_bash_rematch_variable.diff

File fix_bash_rematch_variable.diff, 1.1 KB (added by AstralStorm, 7 years ago)

Patch to fix BASH_REMATCH variable handling

  • paludis/repositories/gentoo/ebuild/builtin_saveenv.bash

    old new  
    2323    ( set ; export -p ) | sed \ 
    2424        -e '/^\(declare -[rx]\+ \)\?SANDBOX_/d' \ 
    2525        -e '/^\(declare -[rx]\+ \)\?.\?[UP]ID/d' \ 
     26        -e '/^\(declare -[rx]\+ \)\?BASH_REMATCH/d' \ 
    2627        -e '/^\(declare -[rx]\+ \)\?BASH_VERSINFO/d' \ 
    2728        -e '/^\(declare -[rx]\+ \)\?PALUDIS_LOADSAVEENV_DIR/d' \ 
    2829        -e '/^\(declare -[rx]\+ \)\?PALUDIS_DO_NOTHING_SANDBOXY/d' \ 
  • paludis/repositories/gentoo/ebuild/ebuild.bash

    old new  
    153153{ 
    154154    local filters=( 
    155155        -e '/^\(EU\|PP\|U\)ID=/d' 
    156         -e '/^BASH_\(ARGC\|ARGV\|LINENO\|SOURCE\|VERSINFO\)=/d' 
     156        -e '/^BASH_\(ARGC\|ARGV\|LINENO\|SOURCE\|VERSINFO\|REMATCH\)=/d' 
    157157        -e '/^BASH_COMPLETION\(_DIR\)\?=/d' 
    158158        -e '/^bash[0-9]\+[a-z]\?=/d' 
    159159        -e '/^\(FUNCNAME\|GROUPS\|SHELLOPTS\)=/d'