Skip to content
Permalink
Browse files

Give the invoked editor standard input and output to play with.

This should fix problems with command line editors hanging.

git-svn-id: https://svn.macports.org/repository/macports/trunk/base@14568 d073be05-634f-4543-b044-5fe20cf6d1d6
  • Loading branch information
jdberry committed Oct 11, 2005
1 parent 3722b44 commit a921c1927380316afce5ff999a29036761913980
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/port/port.tcl
@@ -2,7 +2,7 @@
#\
exec @TCLSH@ "$0" "$@"
# port.tcl
# $Id: port.tcl,v 1.124 2005/10/11 20:39:03 jberry Exp $
# $Id: port.tcl,v 1.125 2005/10/11 21:26:21 jberry Exp $
#
# Copyright (c) 2004 Robert Shaw <rshaw@opendarwin.org>
# Copyright (c) 2002 Apple Computer, Inc.
@@ -1757,7 +1757,7 @@ switch -- $action {
if { $editor == "" } {
fatal "No EDITOR is specified in your environment"
} else {
if {[catch {eval exec $editor $portfile} result]} {
if {[catch {eval exec >/dev/stdout </dev/stdin $editor $portfile} result]} {
global errorInfo
ui_debug "$errorInfo"
fatal_softcontinue "unable to invoke editor $editor: $result"

0 comments on commit a921c19

Please sign in to comment.
You can’t perform that action at this time.