Changeset 14569


Ignore:
Timestamp:
Oct 11, 2005, 10:11:46 PM (15 years ago)
Author:
pguyot (Paul Guyot)
Message:

Look for the binary as exec doesn't do it for us.

Before:

setenv EDITOR bbedit-w.sh
which bbedit-w.sh

/Users/paul/scripts/bbedit-w.sh

port ed libcryptopp

Error: /opt/local/bin/port: unable to invoke editor bbedit-w.sh: couldn't execute "bbedit-w.sh": no such file or directory

File:
1 edited

Legend:

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

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