Changeset 14565 for trunk/base
- Timestamp:
- Oct 11, 2005, 8:34:55 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/base/src/port/port.tcl
r14564 r14565 3 3 exec @TCLSH@ "$0" "$@" 4 4 # port.tcl 5 # $Id: port.tcl,v 1.12 2 2005/10/11 20:17:42jberry Exp $5 # $Id: port.tcl,v 1.123 2005/10/11 20:34:55 jberry Exp $ 6 6 # 7 7 # Copyright (c) 2004 Robert Shaw <rshaw@opendarwin.org> … … 1744 1744 # We need it to evaluate the editor, and the editor 1745 1745 # may want stuff from it as well, like TERM. 1746 array set env [array get boot_env] 1746 array unset env_save; array set env_save [array get env] 1747 array unset env; array set env [array get boot_env] 1747 1748 1748 1749 # Find an editor to edit the portfile … … 1757 1758 fatal "No EDITOR is specified in your environment" 1758 1759 } else { 1759 eval exec $editor $portfile 1760 } 1760 if {[catch {eval exec $editor $portfile} result]} { 1761 global errorInfo 1762 ui_debug "$errorInfo" 1763 fatal_softcontinue "unable to invoke editor: $result" 1764 } 1765 } 1766 1767 # Restore internal dp environment 1768 array unset env; array set env [array get env_save] 1761 1769 } 1762 1770
Note: See TracChangeset
for help on using the changeset viewer.