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

jmr at macports.org jmr at macports.org
Tue Jul 20 03:14:36 PDT 2010


Revision: 69887
          http://trac.macports.org/changeset/69887
Author:   jmr at macports.org
Date:     2010-07-20 03:14:32 -0700 (Tue, 20 Jul 2010)
Log Message:
-----------
simplify/robustify exec command used for edit action, and fake-redirect stderr so it can't make tcl think the command failed

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

Modified: trunk/base/src/port/port.tcl
===================================================================
--- trunk/base/src/port/port.tcl	2010-07-20 05:45:27 UTC (rev 69886)
+++ trunk/base/src/port/port.tcl	2010-07-20 10:14:32 UTC (rev 69887)
@@ -3491,7 +3491,7 @@
                     
                     # Invoke the editor, with a reasonable canned default.
                     if { $editor == "" } { set editor "/usr/bin/vi" }
-                    if {[catch {eval exec >/dev/stdout </dev/stdin $editor $portfile} result]} {
+                    if {[catch {eval exec >@stdout <@stdin 2>@stderr $editor {$portfile}} result]} {
                         global errorInfo
                         ui_debug "$errorInfo"
                         break_softcontinue "unable to invoke editor $editor: $result" 1 status
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100720/0007edf6/attachment.html>


More information about the macports-changes mailing list