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

raimue at macports.org raimue at macports.org
Wed Apr 1 16:38:28 PDT 2009


Revision: 49013
          http://trac.macports.org/changeset/49013
Author:   raimue at macports.org
Date:     2009-04-01 16:38:27 -0700 (Wed, 01 Apr 2009)
Log Message:
-----------
port1.0/portutil.tcl:
There is no need to escape spaces for the exec command as it will be correctly
passed as one argument to dscl.

Reported on macports-dev:
http://lists.macosforge.org/pipermail/macports-dev/2009-April/008103.html

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

Modified: trunk/base/src/port1.0/portutil.tcl
===================================================================
--- trunk/base/src/port1.0/portutil.tcl	2009-04-01 23:00:35 UTC (rev 49012)
+++ trunk/base/src/port1.0/portutil.tcl	2009-04-01 23:38:27 UTC (rev 49013)
@@ -2148,7 +2148,6 @@
     
     foreach arg $args {
         if {[regexp {([a-z]*)=(.*)} $arg match key val]} {
-            regsub -all " " ${val} "\\ " val
             set $key $val
         }
     }
@@ -2180,7 +2179,6 @@
     
     foreach arg $args {
         if {[regexp {([a-z]*)=(.*)} $arg match key val]} {
-            regsub -all " " ${val} "\\ " val
             set $key $val
         }
     }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090401/6d13fa92/attachment.html>


More information about the macports-changes mailing list