[38255] trunk/base/src/port/port.tcl

raimue at macports.org raimue at macports.org
Sun Jul 13 15:38:40 PDT 2008


Revision: 38255
          http://trac.macosforge.org/projects/macports/changeset/38255
Author:   raimue at macports.org
Date:     2008-07-13 15:38:40 -0700 (Sun, 13 Jul 2008)
Log Message:
-----------
port/port.tcl:
Convert list to string to allow additional parameters,
for example  port edit --editor 'vim -y'

Modified Paths:
--------------
    trunk/base/src/port/port.tcl

Modified: trunk/base/src/port/port.tcl
===================================================================
--- trunk/base/src/port/port.tcl	2008-07-13 22:16:28 UTC (rev 38254)
+++ trunk/base/src/port/port.tcl	2008-07-13 22:38:40 UTC (rev 38255)
@@ -2316,9 +2316,9 @@
                     # Find an editor to edit the portfile
                     set editor ""
                     if {[info exists local_options(ports_edit_editor)]} {
-                        set editor $local_options(ports_edit_editor)
+                        set editor [join $local_options(ports_edit_editor)]
                     } elseif {[info exists local_options(ports_ed_editor)]} {
-                        set editor $local_options(ports_ed_editor)
+                        set editor [join $local_options(ports_ed_editor)]
                     } else {
                         foreach ed { VISUAL EDITOR } {
                             if {[info exists env($ed)]} {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080713/bff7022c/attachment.html 


More information about the macports-changes mailing list