Ticket #12885: macports-parse_environment.patch
File macports-parse_environment.patch, 626 bytes (added by afb@…, 17 years ago) |
---|
-
src/port1.0/portutil.tcl
556 556 set the_environment "$the_environment $str" 557 557 } 558 558 559 while {[regexp "^(?: *)(\[^= \]+)=(\"|'|)(\[^\"'\] .*?)\\2(?: +|$)(.*)$" ${the_environment} matchVar key delimiter value remaining]} {559 while {[regexp "^(?: *)(\[^= \]+)=(\"|'|)(\[^\"'\]*?)\\2(?: +|$)(.*)$" ${the_environment} matchVar key delimiter value remaining]} { 560 560 set the_environment ${remaining} 561 561 set ${command}.env_array(${key}) ${value} 562 562 }