[70132] branches/release_1_9/base/src/port/port.tcl

jmr at macports.org jmr at macports.org
Fri Jul 30 00:25:58 PDT 2010


Revision: 70132
          http://trac.macports.org/changeset/70132
Author:   jmr at macports.org
Date:     2010-07-30 00:25:57 -0700 (Fri, 30 Jul 2010)
Log Message:
-----------
merge r69887 from trunk:
 simplify/robustify exec command used for edit action, and fake-redirect stderr so it can't make tcl think the command failed

Revision Links:
--------------
    http://trac.macports.org/changeset/69887

Modified Paths:
--------------
    branches/release_1_9/base/src/port/port.tcl

Modified: branches/release_1_9/base/src/port/port.tcl
===================================================================
--- branches/release_1_9/base/src/port/port.tcl	2010-07-30 07:21:59 UTC (rev 70131)
+++ branches/release_1_9/base/src/port/port.tcl	2010-07-30 07:25:57 UTC (rev 70132)
@@ -3488,7 +3488,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/20100730/63301e0b/attachment-0001.html>


More information about the macports-changes mailing list