Ticket #12885: macports-parse_environment.patch

File macports-parse_environment.patch, 626 bytes (added by afb@…, 17 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                }