New Ticket     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #12885: macports-parse_environment.patch

File macports-parse_environment.patch, 0.6 KB (added by afb@…, 5 years ago)

macports-parse_environment.patch

  • src/port1.0/portutil.tcl

     
    556556                        set the_environment "$the_environment $str" 
    557557                } 
    558558         
    559                 while {[regexp "^(?: *)(\[^= \]+)=(\"|'|)(\[^\"'\].*?)\\2(?: +|$)(.*)$" ${the_environment} matchVar key delimiter value remaining]} { 
     559                while {[regexp "^(?: *)(\[^= \]+)=(\"|'|)(\[^\"'\]*?)\\2(?: +|$)(.*)$" ${the_environment} matchVar key delimiter value remaining]} { 
    560560                        set the_environment ${remaining} 
    561561                        set ${command}.env_array(${key}) ${value} 
    562562                }