[30273] trunk/base/src/port1.0/portutil.tcl

source_changes at macosforge.org source_changes at macosforge.org
Tue Oct 23 01:46:01 PDT 2007


Revision: 30273
          http://trac.macosforge.org/projects/macports/changeset/30273
Author:   afb at macports.org
Date:     2007-10-23 01:46:00 -0700 (Tue, 23 Oct 2007)

Log Message:
-----------
fix bug with empty env variables (#12885, #11895)

Modified Paths:
--------------
    trunk/base/src/port1.0/portutil.tcl

Modified: trunk/base/src/port1.0/portutil.tcl
===================================================================
--- trunk/base/src/port1.0/portutil.tcl	2007-10-23 08:32:12 UTC (rev 30272)
+++ trunk/base/src/port1.0/portutil.tcl	2007-10-23 08:46:00 UTC (rev 30273)
@@ -556,7 +556,7 @@
 			set the_environment "$the_environment $str"
 		}
 	
-		while {[regexp "^(?: *)(\[^= \]+)=(\"|'|)(\[^\"'\].*?)\\2(?: +|$)(.*)$" ${the_environment} matchVar key delimiter value remaining]} {
+		while {[regexp "^(?: *)(\[^= \]+)=(\"|'|)(\[^\"'\]*?)\\2(?: +|$)(.*)$" ${the_environment} matchVar key delimiter value remaining]} {
 			set the_environment ${remaining}
 			set ${command}.env_array(${key}) ${value}
 		}

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20071023/36bfe60a/attachment.html


More information about the macports-changes mailing list