Changeset 14568 for trunk/base


Ignore:
Timestamp:
Oct 11, 2005, 9:26:21 PM (19 years ago)
Author:
jberry
Message:

Give the invoked editor standard input and output to play with.
This should fix problems with command line editors hanging.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/base/src/port/port.tcl

    r14566 r14568  
    33exec @TCLSH@ "$0" "$@"
    44# port.tcl
    5 # $Id: port.tcl,v 1.124 2005/10/11 20:39:03 jberry Exp $
     5# $Id: port.tcl,v 1.125 2005/10/11 21:26:21 jberry Exp $
    66#
    77# Copyright (c) 2004 Robert Shaw <rshaw@opendarwin.org>
     
    17581758                                                        fatal "No EDITOR is specified in your environment"
    17591759                                                } else {
    1760                                                         if {[catch {eval exec $editor $portfile} result]} {
     1760                                                        if {[catch {eval exec >/dev/stdout </dev/stdin $editor $portfile} result]} {
    17611761                                                                global errorInfo
    17621762                                                                ui_debug "$errorInfo"
Note: See TracChangeset for help on using the changeset viewer.